Package org.lwjglx.input
Class Controllers
java.lang.Object
org.lwjglx.input.Controllers
public class Controllers
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_AXES
static int
MAX_BUTTONS
static int
MAX_CONTROLLERS
-
Constructor Summary
Constructors Constructor Description Controllers()
-
Method Summary
Modifier and Type Method Description static void
create()
static Controller
getController(int int1)
static int
getControllerCount()
static boolean
isCreated()
static void
poll(GamepadState[] gamepadStateArray)
static void
setControllerConnectedCallback(java.util.function.Consumer consumer)
static void
setControllerDisconnectedCallback(java.util.function.Consumer consumer)
static void
setDebugToggleControllerPluggedIn(int int1)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
MAX_AXES
public static final int MAX_AXES- See Also:
- Constant Field Values
-
MAX_BUTTONS
public static final int MAX_BUTTONS- See Also:
- Constant Field Values
-
MAX_CONTROLLERS
public static final int MAX_CONTROLLERS- See Also:
- Constant Field Values
-
-
Constructor Details
-
Controllers
public Controllers()
-
-
Method Details
-
create
public static void create() -
setControllerConnectedCallback
public static void setControllerConnectedCallback(java.util.function.Consumer consumer) -
setControllerDisconnectedCallback
public static void setControllerDisconnectedCallback(java.util.function.Consumer consumer) -
getControllerCount
public static int getControllerCount() -
getController
-
isCreated
public static boolean isCreated() -
poll
-
setDebugToggleControllerPluggedIn
public static void setDebugToggleControllerPluggedIn(int int1)
-