Skip to content
Carl Hewett edited this page Apr 2, 2016 · 5 revisions

Here you can find all available key codes for registering in the InputManager. For example:

getGame():getInputManager():registerKey(KeyCode.UP)

Module KeyCode

Special Keys

  • UP
  • DOWN
  • LEFT
  • RIGHT
  • LSHIFT
  • RSHIFT
  • SPACE
  • BACKSPACE

Letters

You have access to all letters like so:

KeyCode.a
KeyCode.b
...

You can check if LSHIFT or RSHIFT is pressed to check if the pressed key would be capitalized.