keyPressed() and keyReleased() repeats
in
Programming Questions
•
2 years ago
Hello!!
I read that there is a problem in linux with the key functions. When I hold a key, the keyPressed() and keyReleased() functions are triggered
continuously.
I want to send a character via serial port only ONCE, when a key is pressed, and send another when the key is released. i.e. send an 'A' when the key A is pressed, and send an 'a' when its released.
How can I do this??
Thank you very much!!
1