Closed GoogleCodeExporter closed 8 years ago
That is because the keyboard will keep on sending distinct(not continuous) key
value to the program making the key pressed event loops again and again.
Try ignore repeating key value or just get the first value only.
Original comment by princech...@gmail.com
on 2 Oct 2010 at 12:34
This issue is a common bug in LINUX Operating System. When user holds down a
key, the program will send KeyPressed() and KeyReleased() events alternatively
until the user released the key.
Suggestion from Khoo Ka Thoong is implemented.
Issued solved by implementing timer to ignore repeating KeyReleased().
Repeating KeyPressed() is ignored by getting the time of KeyPressed() event. If
the difference between KeyPressed() event and the last KeyReleased() event is
zero, the KeyPressed() event is ignored.
Original comment by seahlin...@gmail.com
on 8 Oct 2010 at 2:48
Original issue reported on code.google.com by
seahlin...@gmail.com
on 2 Oct 2010 at 12:22