public final class Input
extends java.lang.Object
Input
class is the LITIengine's access point to devices that capture physical player input.
It manages input from different devices, i.e. keyboard, mouse or game pad, and provides a unified API to access this information.mouse()
,
keyboard()
,
gamepadManager()
Modifier and Type | Class and Description |
---|---|
static class |
Input.InputGameAdapter |
Modifier and Type | Method and Description |
---|---|
static GamepadManager |
gamepadManager() |
static java.util.List<Gamepad> |
gamepads() |
static Gamepad |
getGamepad()
Gets the first game pad that is currently available.
|
static Gamepad |
getGamepad(int index)
Gets the game pad with the specified index if it is still plugged in.
|
static IKeyboard |
keyboard() |
static IMouse |
mouse() |
public static GamepadManager gamepadManager()
public static IKeyboard keyboard()
public static IMouse mouse()
public static java.util.List<Gamepad> gamepads()
public static Gamepad getGamepad()
Gamepad
instance