protected class AndroidJoystickJoyInput14.AndroidJoystick extends AbstractJoystick
Constructor and Description |
---|
AndroidJoystick(InputManager inputManager,
JoyInput joyInput,
android.view.InputDevice device,
int joyId,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected JoystickAxis |
addAxis(android.view.InputDevice.MotionRange motionRange) |
protected JoystickButton |
addButton(int keyCode) |
protected java.util.Set<java.lang.Integer> |
getAndroidAxes() |
protected JoystickAxis |
getAxis(int androidAxis) |
protected JoystickButton |
getButton(int keyCode) |
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.
|
int |
getXAxisIndex()
Gets the index number for the X axis on the joystick.
|
JoystickAxis |
getYAxis()
Returns the Y axis for this joystick.
|
int |
getYAxisIndex()
Gets the index number for the Y axis on the joystick.
|
addAxis, addButton, assignAxis, assignButton, getAxes, getAxis, getAxisCount, getButton, getButtonCount, getButtons, getInputManager, getJoyId, getJoyInput, getName, rumble, toString
public AndroidJoystick(InputManager inputManager, JoyInput joyInput, android.view.InputDevice device, int joyId, java.lang.String name)
protected JoystickAxis getAxis(int androidAxis)
protected java.util.Set<java.lang.Integer> getAndroidAxes()
protected JoystickButton getButton(int keyCode)
protected JoystickButton addButton(int keyCode)
protected JoystickAxis addAxis(android.view.InputDevice.MotionRange motionRange)
public JoystickAxis getXAxis()
Joystick
E.g. for most gamepads, the left control stick X axis will be returned.
public JoystickAxis getYAxis()
Joystick
E.g. for most gamepads, the left control stick Y axis will be returned.
public JoystickAxis getPovXAxis()
Joystick
public JoystickAxis getPovYAxis()
Joystick
public int getXAxisIndex()
AbstractJoystick
E.g. for most gamepads, the left control stick X axis will be returned.
getXAxisIndex
in interface Joystick
getXAxisIndex
in class AbstractJoystick
Joystick.assignAxis(java.lang.String, java.lang.String, int)
public int getYAxisIndex()
AbstractJoystick
E.g. for most gamepads, the left control stick Y axis will be returned.
getYAxisIndex
in interface Joystick
getYAxisIndex
in class AbstractJoystick
Joystick.assignAxis(java.lang.String, java.lang.String, int)