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 SummaryConstructorsConstructorDescriptionAndroidJoystick(InputManager inputManager, JoyInput joyInput, android.view.InputDevice device, int joyId, String name) 
- 
Method SummaryModifier 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.AbstractJoystickaddAxis, addButton, assignAxis, assignButton, getAxes, getAxis, getAxisCount, getButton, getButtonCount, getButtons, getInputManager, getJoyId, getJoyInput, getName, rumble, toString
- 
Constructor Details- 
AndroidJoystickpublic AndroidJoystick(InputManager inputManager, JoyInput joyInput, android.view.InputDevice device, int joyId, String name) 
 
- 
- 
Method Details- 
getAxis
- 
getAndroidAxes
- 
getButton
- 
addButton
- 
addAxis
- 
getXAxisDescription 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:
 
- 
getYAxisDescription 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:
 
- 
getPovXAxisDescription 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:
 
- 
getPovYAxisDescription 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:
 
- 
getXAxisIndexpublic 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 interface- Joystick
- Overrides:
- getXAxisIndexin class- AbstractJoystick
- Returns:
- The axis index for the X axis for this joystick.
- See Also:
 
- 
getYAxisIndexpublic 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 interface- Joystick
- Overrides:
- getYAxisIndexin class- AbstractJoystick
- Returns:
- The axis index for the Y axis for this joystick.
- See Also:
 
 
-