Package zombie.core.input
Class XInputController
java.lang.Object
net.java.games.input.AbstractController
zombie.core.input.XInputController
- All Implemented Interfaces:
net.java.games.input.Controller
public class XInputController
extends net.java.games.input.AbstractController
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.java.games.input.Controller
net.java.games.input.Controller.PortType, net.java.games.input.Controller.Type
-
Field Summary
Fields Modifier and Type Field Description static int[]
ComponentButtonBits
static int
DPAD_ALL
static int
XINPUT_GAMEPAD_A
static int
XINPUT_GAMEPAD_B
static int
XINPUT_GAMEPAD_BACK
static int
XINPUT_GAMEPAD_DPAD_DOWN
static int
XINPUT_GAMEPAD_DPAD_LEFT
static int
XINPUT_GAMEPAD_DPAD_RIGHT
static int
XINPUT_GAMEPAD_DPAD_UP
static int
XINPUT_GAMEPAD_LEFT_SHOULDER
static int
XINPUT_GAMEPAD_LEFT_THUMB
static int
XINPUT_GAMEPAD_RIGHT_SHOULDER
static int
XINPUT_GAMEPAD_RIGHT_THUMB
static int
XINPUT_GAMEPAD_START
static int
XINPUT_GAMEPAD_X
static int
XINPUT_GAMEPAD_Y
-
Constructor Summary
Constructors Modifier Constructor Description protected
XInputController(int int1, java.lang.String string, net.java.games.input.Component[] componentArray, net.java.games.input.Controller[] controllerArray, net.java.games.input.Rumbler[] rumblerArray)
-
Method Summary
Modifier and Type Method Description static XInputController
create(int int1, java.lang.String string)
protected boolean
getNextDeviceEvent(net.java.games.input.Event event)
boolean
isConnected()
protected void
pollDevice()
Methods inherited from class net.java.games.input.AbstractController
getComponent, getComponents, getControllers, getEventQueue, getName, getPortNumber, getPortType, getRumblers, getType, poll, setDeviceEventQueueSize, setEventQueueSize, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
XINPUT_GAMEPAD_DPAD_UP
public static final int XINPUT_GAMEPAD_DPAD_UP- See Also:
- Constant Field Values
-
XINPUT_GAMEPAD_DPAD_DOWN
public static final int XINPUT_GAMEPAD_DPAD_DOWN- See Also:
- Constant Field Values
-
XINPUT_GAMEPAD_DPAD_LEFT
public static final int XINPUT_GAMEPAD_DPAD_LEFT- See Also:
- Constant Field Values
-
XINPUT_GAMEPAD_DPAD_RIGHT
public static final int XINPUT_GAMEPAD_DPAD_RIGHT- See Also:
- Constant Field Values
-
XINPUT_GAMEPAD_START
public static final int XINPUT_GAMEPAD_START- See Also:
- Constant Field Values
-
XINPUT_GAMEPAD_BACK
public static final int XINPUT_GAMEPAD_BACK- See Also:
- Constant Field Values
-
XINPUT_GAMEPAD_LEFT_THUMB
public static final int XINPUT_GAMEPAD_LEFT_THUMB- See Also:
- Constant Field Values
-
XINPUT_GAMEPAD_RIGHT_THUMB
public static final int XINPUT_GAMEPAD_RIGHT_THUMB- See Also:
- Constant Field Values
-
XINPUT_GAMEPAD_LEFT_SHOULDER
public static final int XINPUT_GAMEPAD_LEFT_SHOULDER- See Also:
- Constant Field Values
-
XINPUT_GAMEPAD_RIGHT_SHOULDER
public static final int XINPUT_GAMEPAD_RIGHT_SHOULDER- See Also:
- Constant Field Values
-
XINPUT_GAMEPAD_A
public static final int XINPUT_GAMEPAD_A- See Also:
- Constant Field Values
-
XINPUT_GAMEPAD_B
public static final int XINPUT_GAMEPAD_B- See Also:
- Constant Field Values
-
XINPUT_GAMEPAD_X
public static final int XINPUT_GAMEPAD_X- See Also:
- Constant Field Values
-
XINPUT_GAMEPAD_Y
public static final int XINPUT_GAMEPAD_Y- See Also:
- Constant Field Values
-
DPAD_ALL
public static final int DPAD_ALL- See Also:
- Constant Field Values
-
ComponentButtonBits
public static final int[] ComponentButtonBits
-
-
Constructor Details
-
XInputController
protected XInputController(int int1, java.lang.String string, net.java.games.input.Component[] componentArray, net.java.games.input.Controller[] controllerArray, net.java.games.input.Rumbler[] rumblerArray)
-
-
Method Details
-
create
-
pollDevice
protected void pollDevice() throws java.io.IOException- Overrides:
pollDevice
in classnet.java.games.input.AbstractController
- Throws:
java.io.IOException
-
getNextDeviceEvent
protected boolean getNextDeviceEvent(net.java.games.input.Event event) throws java.io.IOException- Specified by:
getNextDeviceEvent
in classnet.java.games.input.AbstractController
- Throws:
java.io.IOException
-
isConnected
public boolean isConnected()
-