Hi, I'm trying to understand how to handle the way keyboard events are notifyed under linux (I do not know if windows handle this in a different way).
I'm using a WakeupOnAWTEvent(AWTEvent.KEY_EVENT_MASK).
When I press a key and keep it pressed, I receive a lot of this 3 events groups
PRESSED TYPED RELEASED
almost always they are divided between frames in this way
1 PRESSED TYPED 2 RELEASED PRESSED TYPED 3 RELEASED PRESSED TYPED RELEASED PRESSED TYPED 4 RELEASED PRESSED TYPED RELEASED PRESSED TYPED RELEASED PRESSED TYPED 5 RELEASED PRESSED TYPED ecc.
Sometimes this is not true and events are "randomly" separated between frames. I was trying to identify the first frame when the key is pressed and the one when the key is released.
Does anybody found this same problem?
Do you know if there is any reason for it's not a good idea to relay on the in memory key status rather then on single events (like it's too easy to loose some and remain in a wrong state)?
Thanks
Lorenzo
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".