Posted 24 March 2013 - 06:23 AM
Hello!
I have this code (much more, this is basic):
If I push the button 'b', then it will theoretical use the char event. If it is not a char but a key then it will execute the key event right?
But to my testings with this code it will fire both events, is there a way to work around that?
Thanks in advance,
-Engineer
I have this code (much more, this is basic):
local evt = { os.pullEvent() }
if evt[1] == "char" then
--do things with the char
elseif evt[1] == "key" then
--do things with keys like enter, shift
end
If I push the button 'b', then it will theoretical use the char event. If it is not a char but a key then it will execute the key event right?
But to my testings with this code it will fire both events, is there a way to work around that?
Thanks in advance,
-Engineer