Package com.jme3.input.android
Class AndroidSensorJoyInput.AndroidSensorJoystick
java.lang.Object
com.jme3.input.AbstractJoystick
com.jme3.input.android.AndroidSensorJoyInput.AndroidSensorJoystick
- All Implemented Interfaces:
Joystick
- Enclosing class:
- AndroidSensorJoyInput
-
Constructor Summary
ConstructorDescriptionAndroidSensorJoystick
(InputManager inputManager, JoyInput joyInput, int joyId, String name) -
Method Summary
Modifier and TypeMethodDescriptionReturns the POV X axis for this joystick.Returns the POV Y axis for this joystick.getXAxis()
Returns the X axis for this joystick.getYAxis()
Returns the Y axis for this joystick.protected void
setXAxis
(JoystickAxis axis) protected void
setYAxis
(JoystickAxis axis) Methods inherited from class com.jme3.input.AbstractJoystick
addAxis, addButton, assignAxis, assignButton, getAxes, getAxis, getAxisCount, getButton, getButtonCount, getButtons, getInputManager, getJoyId, getJoyInput, getName, getXAxisIndex, getYAxisIndex, rumble, toString
-
Constructor Details
-
AndroidSensorJoystick
-
-
Method Details
-
addAxis
protected AndroidSensorJoyInput.AndroidSensorJoystickAxis addAxis(String axisName, String logicalName, int axisNum, float maxRawValue) -
setXAxis
-
setYAxis
-
getXAxis
Description copied from interface:Joystick
Returns the X axis for this joystick.E.g. for most gamepads, the left control stick X axis will be returned.
- Returns:
- the pre-existing instance
- See Also:
-
getYAxis
Description copied from interface:Joystick
Returns the Y axis for this joystick.E.g. for most gamepads, the left control stick Y axis will be returned.
- Returns:
- the pre-existing instance
- See Also:
-
getPovXAxis
Description copied from interface:Joystick
Returns the POV X axis for this joystick. This is a convenience axis providing an x-axis subview of the HAT axis.- Returns:
- the pre-existing instance
- See Also:
-
getPovYAxis
Description copied from interface:Joystick
Returns the POV Y axis for this joystick. This is a convenience axis providing a y-axis subview of the HAT axis.- Returns:
- the pre-existing instance
- See Also:
-