A
axel.kowald
Hi everybody,
I would like to read the current keyboard state (is button X pressed)
without a keylistener.
The problem is that I need to recognize a keypress in my java
application even if the application is not the foreground window and
has no keyboard focus.
My application runs in a looping thread and during each cycle I want
to check the current state of the keyboard.
How can I do this?
Many thanks,
axel
I would like to read the current keyboard state (is button X pressed)
without a keylistener.
The problem is that I need to recognize a keypress in my java
application even if the application is not the foreground window and
has no keyboard focus.
My application runs in a looping thread and during each cycle I want
to check the current state of the keyboard.
How can I do this?
Many thanks,
axel