public class XInputAxes extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
dpad |
static int |
DPAD_CENTER |
static int |
DPAD_DOWN |
static int |
DPAD_DOWN_LEFT |
static int |
DPAD_DOWN_RIGHT |
static int |
DPAD_LEFT |
static int |
DPAD_RIGHT |
static int |
DPAD_UP |
static int |
DPAD_UP_LEFT |
static int |
DPAD_UP_RIGHT |
float |
lt |
int |
ltRaw |
float |
lx |
int |
lxRaw |
float |
ly |
int |
lyRaw |
float |
rt |
int |
rtRaw |
float |
rx |
int |
rxRaw |
float |
ry |
int |
ryRaw |
| Modifier | Constructor and Description |
|---|---|
protected |
XInputAxes() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copy(XInputAxes axes)
Copies the state of all axes from the specified state.
|
static int |
dpadFromButtons(boolean up,
boolean down,
boolean left,
boolean right)
Returns an integer representing the current direction of the D-Pad.
|
float |
get(XInputAxis axis)
Gets the value from the specified axis.
|
int |
getRaw(XInputAxis axis)
Gets the raw value from the specified axis.
|
protected void |
reset()
Resets the state of all axes.
|
public int lxRaw
public int lyRaw
public int rxRaw
public int ryRaw
public int ltRaw
public int rtRaw
public float lx
public float ly
public float rx
public float ry
public float lt
public float rt
public int dpad
public static final int DPAD_CENTER
public static final int DPAD_UP_LEFT
public static final int DPAD_UP
public static final int DPAD_UP_RIGHT
public static final int DPAD_RIGHT
public static final int DPAD_DOWN_RIGHT
public static final int DPAD_DOWN
public static final int DPAD_DOWN_LEFT
public static final int DPAD_LEFT
public float get(XInputAxis axis)
axis - the axispublic int getRaw(XInputAxis axis)
axis - the axisprotected void reset()
protected void copy(XInputAxes axes)
axes - the state to copy frompublic static int dpadFromButtons(boolean up,
boolean down,
boolean left,
boolean right)
up - the up button statedown - the down button stateleft - the left button stateright - the right button stateDPAD_* values of this classCopyright © 2018. All rights reserved.