How to detect released key
Posted: 29 Sep 2019, 08:59
Hi,
I saw there is the sim.message_keypress constant. But how do I detect when a key is down and when it is released again?
I'd like to drive a car over the keyboard, turning left when the key is down, and turning back to the center direction/0°when releasing it.
I saw there is the sim.message_keypress constant. But how do I detect when a key is down and when it is released again?
I'd like to drive a car over the keyboard, turning left when the key is down, and turning back to the center direction/0°when releasing it.