Key events won't fire correctly

F

fix

Hi all,
If I press the Up arrow and hold,
then the Down arrow and release,
when the Up arrow is still on hold,
the keyPress event for the Up arrow won't fire anymore.
(Up pressed)
keyPress, Up
....
KeyPress, Up
(Down pressed)
KeyPress, Down
.....
KeyPress, Down
(Down released)
Key Release, Down
Key Release, Up
(Up released)
Key Release, Up
I guess this is not a problem of Java, but my OS - Windows,
but is there any workarounds?
Instead of waiting the events to be fired, is there any function that I
can call to check what keys are down and what are not?
Thanks,
fix
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top