¡@

Home 

java Programming Glossary: kc

Keyboard input for a game in Java

http://stackoverflow.com/questions/2702203/keyboard-input-for-a-game-in-java

KeyEvent e assert EventQueue.isDispatchThread int kc e.getKeyCode if e.getID KeyEvent.KEY_PRESSED If repeat is activated.. should have been intercepted since last KEY_PRESSED. if kc account.getInt KC_MOVE_LEFT isRepeating LEFT move LEFT if kc.. account.getInt KC_MOVE_LEFT isRepeating LEFT move LEFT if kc account.getInt KC_MOVE_RIGHT isRepeating RIGHT move RIGHT if..