Package com.jme3.input.android
Class AndroidJoystickJoyInput14.AndroidJoystick
java.lang.Object
com.jme3.input.AbstractJoystick
com.jme3.input.android.AndroidJoystickJoyInput14.AndroidJoystick
- All Implemented Interfaces:
 Joystick
- Enclosing class:
 - AndroidJoystickJoyInput14
 
- 
Constructor Summary
ConstructorsConstructorDescriptionAndroidJoystick(InputManager inputManager, JoyInput joyInput, android.view.InputDevice device, int joyId, String name)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected JoystickAxisaddAxis(android.view.InputDevice.MotionRange motionRange) protected JoystickButtonaddButton(int keyCode) protected JoystickAxisgetAxis(int androidAxis) protected JoystickButtongetButton(int keyCode) Returns the POV X axis for this joystick.Returns the POV Y axis for this joystick.getXAxis()Returns the X axis for this joystick.intGets the index number for the X axis on the joystick.getYAxis()Returns the Y axis for this joystick.intGets the index number for the Y axis on the joystick.Methods inherited from class com.jme3.input.AbstractJoystick
addAxis, addButton, assignAxis, assignButton, getAxes, getAxis, getAxisCount, getButton, getButtonCount, getButtons, getInputManager, getJoyId, getJoyInput, getName, rumble, toString 
- 
Constructor Details
- 
AndroidJoystick
public AndroidJoystick(InputManager inputManager, JoyInput joyInput, android.view.InputDevice device, int joyId, String name)  
 - 
 - 
Method Details
- 
getAxis
 - 
getAndroidAxes
 - 
getButton
 - 
addButton
 - 
addAxis
 - 
getXAxis
Description copied from interface:JoystickReturns 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:JoystickReturns 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:JoystickReturns 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:JoystickReturns 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:
 
 - 
getXAxisIndex
public int getXAxisIndex()Description copied from class:AbstractJoystickGets the index number for the X axis on the joystick.E.g. for most gamepads, the left control stick X axis will be returned.
- Specified by:
 getXAxisIndexin interfaceJoystick- Overrides:
 getXAxisIndexin classAbstractJoystick- Returns:
 - The axis index for the X axis for this joystick.
 - See Also:
 
 - 
getYAxisIndex
public int getYAxisIndex()Description copied from class:AbstractJoystickGets the index number for the Y axis on the joystick.E.g. for most gamepads, the left control stick Y axis will be returned.
- Specified by:
 getYAxisIndexin interfaceJoystick- Overrides:
 getYAxisIndexin classAbstractJoystick- Returns:
 - The axis index for the Y axis for this joystick.
 - See Also:
 
 
 -