protected class AndroidSensorJoyInput.AndroidSensorJoystick extends AbstractJoystick
Constructor and Description |
---|
AndroidSensorJoystick(InputManager inputManager,
JoyInput joyInput,
int joyId,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected AndroidSensorJoyInput.AndroidSensorJoystickAxis |
addAxis(java.lang.String axisName,
java.lang.String logicalName,
int axisNum,
float maxRawValue) |
JoystickAxis |
getPovXAxis()
Returns the POV X axis for this joystick.
|
JoystickAxis |
getPovYAxis()
Returns the POV Y axis for this joystick.
|
JoystickAxis |
getXAxis()
Returns the X axis for this joystick.
|
JoystickAxis |
getYAxis()
Returns the Y axis for this joystick.
|
protected void |
setXAxis(JoystickAxis axis) |
protected void |
setYAxis(JoystickAxis axis) |
addAxis, addButton, assignAxis, assignButton, getAxes, getAxis, getAxisCount, getButton, getButtonCount, getButtons, getInputManager, getJoyId, getJoyInput, getName, getXAxisIndex, getYAxisIndex, rumble, toString
public AndroidSensorJoystick(InputManager inputManager, JoyInput joyInput, int joyId, java.lang.String name)
protected AndroidSensorJoyInput.AndroidSensorJoystickAxis addAxis(java.lang.String axisName, java.lang.String logicalName, int axisNum, float maxRawValue)
protected void setXAxis(JoystickAxis axis)
protected void setYAxis(JoystickAxis axis)
public JoystickAxis getXAxis()
Joystick
E.g. for most gamepads, the left control stick X axis will be returned.
JoystickAxis.assignAxis(java.lang.String, java.lang.String)
public JoystickAxis getYAxis()
Joystick
E.g. for most gamepads, the left control stick Y axis will be returned.
JoystickAxis.assignAxis(java.lang.String, java.lang.String)
public JoystickAxis getPovXAxis()
Joystick
JoystickAxis.assignAxis(java.lang.String, java.lang.String)
public JoystickAxis getPovYAxis()
Joystick
JoystickAxis.assignAxis(java.lang.String, java.lang.String)