Hi there,
I am checking for a key press (in this case, the letter “a”) - everything goes well except the event is firing repeatedly in the simulator.
I am checking for event.phase == “down” before running my function, so I’m not sure why the “down” event is being fired when I hold the button down.
Is this a Mac OSX thing? A simulator thing? Any help is appreciated, thanks!
Nick
if (event.keyName == "a") then print(event.phase) if (event.phase == "down") then -- this stuff fires repeatedly end end