-
Notifications
You must be signed in to change notification settings - Fork 2
KeyCode
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
- UP
- DOWN
- LEFT
- RIGHT
- LSHIFT
- RSHIFT
- SPACE
- BACKSPACE
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.
- Understanding the Lua API reference
- Tutorial
- Units
- Notes
- Lua API reference
- Callbacks
- Global
- Game
- Engine
- ResourceManager
- Shader
- Texture
- TextureType
- ObjectGeometryGroup
- ObjectGeometry
- Sound
- SoundType
- GPUBuffer_uint
- GPUBuffer_vec2
- GPUBuffer_vec3
- InputManager
- KeyCode
- EntityManager
- Entity
- PhysicsBody
- PhysicsBodyType
- Camera
- Object
- TexturedObject
- ShadedObject
- Light
- GraphicsManager
- Utils
- IVec2
- Vec2
- Vec3
- Vec4