Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asynchronous keyboard input

Status
Not open for further replies.

clax99

Programmer
Oct 29, 2001
23
US
Hi, Im writing a game applet in Java and for the first time its too slow receiving user input(arrow keys), through the KeyListener/KeyEvent paradigm. I instead want to use asynchronous keyboard querying, as is done with my games written for Windoze. Basically, every time through the main game loop, I want to query for the status of the 4 arrow keys, rather than responding to KeyEvent messages sent to another running thread solely employed for catching key events. I have no idea how to do this in Jave, any help would be greatly appreciated. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top