public final class Input extends java.lang.Object
Inputclass is the LITIENGINE's access point to devices that capture physical player input. It manages input from different devices, i.e. keyboard, mouse or gamepad, and provides a unified API to access this information.
Nested Class Summary
Nested Classes Modifier and Type Class Description
- public static GamepadManager gamepads()Gets the manager for all gamepad input devices.
The manager provides easy access to the default controller as well as access by gamepad index for mulitplayer games. Gamepads don't need to be added explicitly, the manager supports hot-plugging at runtime and will auto-detect any added/removed gamepads.
This returns null if
Game.config().input().isGamepadSupport()is set to false.
- public static IKeyboard keyboard()Gets the keyboard input device.
- The keyboard input device.
- public static IMouse mouse()Gets the mouse input device.
- The mouse input device.