public interface JoystickAxis
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LEFT_TRIGGER |
static java.lang.String |
POV_X |
static java.lang.String |
POV_Y |
static java.lang.String |
RIGHT_TRIGGER |
static java.lang.String |
X_AXIS |
static java.lang.String |
Y_AXIS |
static java.lang.String |
Z_AXIS |
static java.lang.String |
Z_ROTATION |
Modifier and Type | Method and Description |
---|---|
void |
assignAxis(java.lang.String positiveMapping,
java.lang.String negativeMapping)
Assign the mappings to receive events from the given joystick axis.
|
int |
getAxisId()
Returns the unique axisId of this joystick axis within a given
InputManager context.
|
float |
getDeadZone()
Returns the suggested dead zone for this axis.
|
Joystick |
getJoystick()
Returns the joystick to which this axis object belongs.
|
java.lang.String |
getLogicalId()
Returns the logical identifier of this joystick axis.
|
java.lang.String |
getName()
Returns the name of this joystick.
|
boolean |
isAnalog()
Returns true if this is an analog axis, meaning the values
are a continuous range instead of 1, 0, and -1.
|
boolean |
isRelative()
Returns true if this axis presents relative values.
|
static final java.lang.String X_AXIS
static final java.lang.String Y_AXIS
static final java.lang.String Z_AXIS
static final java.lang.String Z_ROTATION
static final java.lang.String LEFT_TRIGGER
static final java.lang.String RIGHT_TRIGGER
static final java.lang.String POV_X
static final java.lang.String POV_Y
void assignAxis(java.lang.String positiveMapping, java.lang.String negativeMapping)
positiveMapping
- The mapping to receive events when the axis is negativenegativeMapping
- The mapping to receive events when the axis is positiveJoystick getJoystick()
java.lang.String getName()
java.lang.String getLogicalId()
int getAxisId()
boolean isAnalog()
boolean isRelative()
float getDeadZone()