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 IGamepadManager |
gamepadManager() |
static java.util.List<IGamepad> |
gamepads() |
static IGamepad |
getGamepad()
Gets the first game pad that is currently available.
|
static IGamepad |
getGamepad(int index)
Gets the game pad with the specified index if it is still plugged in.
|
static IGameLoop |
getLoop() |
static IKeyboard |
keyboard() |
static IMouse |
mouse() |
public static IGameLoop getLoop()
public static IGamepadManager gamepadManager()
public static IKeyboard keyboard()
public static IMouse mouse()
public static java.util.List<IGamepad> gamepads()
public static IGamepad getGamepad()
IGamepad instancepublic static IGamepad getGamepad(int index)