Results 1 to 2 of 2

Thread: Keyboard and JBuilder

  1. #1
    Join Date
    Jan 2008
    Posts
    42
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default 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.

  2. #2
    Join Date
    Sep 2008
    Location
    London or Slovakia
    Posts
    27
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default

    Well little more throughout search next time
    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •