M
Michael
I'm writing a nifty littly multiplayer Pong-clone applet, and stumbled
upon this problem:
I want to check if NO KEY AT ALL is pressed in my run-loop.
Writing something into keyPressed, keyTyped or keyReleased doesn't
work, because they still require a key to be pressed, typed or
released, so my run-loop halts. I need something like "if
(keypressed=false) ..."
Couldn't found a solution for this one, neither on usenet nor the Java
API/Docs. :-(
Ideas anyone?
mfg Michael
upon this problem:
I want to check if NO KEY AT ALL is pressed in my run-loop.
Writing something into keyPressed, keyTyped or keyReleased doesn't
work, because they still require a key to be pressed, typed or
released, so my run-loop halts. I need something like "if
(keypressed=false) ..."
Couldn't found a solution for this one, neither on usenet nor the Java
API/Docs. :-(
Ideas anyone?
mfg Michael