PDA

View Full Version : button:GetName() with a hardkey



sonata31
May 9th, 2008, 07:26 AM
I have the codeas follows in a Lua Event (NRBasic plugin)



function(button, ctr)
NetRemote.SetVariable("NR.HKName", button:GetName());
end;


With a soft button it's ok

With a hardkey the name of it is not sended back

sonata31
May 9th, 2008, 07:49 AM
tostring(button) sends back "nil" for a hardkey ???

Rob H
May 9th, 2008, 01:15 PM
Good point - but the question then is what should be returned for hard keys?

sonata31
May 9th, 2008, 03:29 PM
Good point - but the question then is what should be returned for hard keys?

How get the name for un hardkey ?

Rob H
May 9th, 2008, 03:45 PM
Yes, I understand that, but what name should be returned? Something like e.g. Hardkey.FarLeft or just FarLeft?

sonata31
May 10th, 2008, 04:11 AM
Yes, I understand that, but what name should be returned? Something like e.g. Hardkey.FarLeft or just FarLeft?

it doesn't matter