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

Staff online

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top