-
Keyboard and JBuilder
I'm designing a small game for a project of mine, but I have searched all over the net and I can't find this info. All I need to do is be able to use the keyboard arrows to move an object, very simple but I can't find this anywhere? I am using JBuilder.
Thanks in advance.
-
Well little more throughout search next time :p
KeyEvent()
- VK UP - Constant for the non-numpad up arrow key.
- VK DOWN - Constant for the non-numpad down arrow key.
- VK LEFT - Constant for the non-numpad left arrow key.
- VK RIGHT - Constant for the non-numpad right arrow key.
Nice tutorial at Sun Java website How to Write a Key Listener :eek: