Package com.jme3.input.android
Class AndroidSensorJoyInput.AndroidSensorJoystickAxis
java.lang.Object
com.jme3.input.DefaultJoystickAxis
com.jme3.input.android.AndroidSensorJoyInput.AndroidSensorJoystickAxis
- All Implemented Interfaces:
com.jme3.input.JoystickAxis,com.jme3.input.SensorJoystickAxis
- Enclosing class:
AndroidSensorJoyInput
public class AndroidSensorJoyInput.AndroidSensorJoystickAxis
extends com.jme3.input.DefaultJoystickAxis
implements com.jme3.input.SensorJoystickAxis
-
Field Summary
Fields inherited from interface com.jme3.input.JoystickAxis
LEFT_TRIGGER, POV_X, POV_Y, RIGHT_TRIGGER, X_AXIS, Y_AXIS, Z_AXIS, Z_ROTATIONFields inherited from interface com.jme3.input.SensorJoystickAxis
ORIENTATION_X, ORIENTATION_Y, ORIENTATION_Z -
Constructor Summary
ConstructorsConstructorDescriptionAndroidSensorJoystickAxis(com.jme3.input.InputManager inputManager, com.jme3.input.Joystick parent, int axisIndex, String name, String logicalId, boolean isAnalog, boolean isRelative, float deadZone, float maxRawValue) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected floatprotected floatfloatprotected booleanprotected voidsetCurRawValue(float rawValue) voidsetMaxRawValue(float maxRawValue) Methods inherited from class com.jme3.input.DefaultJoystickAxis
assignAxis, getAxisId, getDeadZone, getJoystick, getLogicalId, getName, isAnalog, isRelative, setDeadZone, toString
-
Constructor Details
-
AndroidSensorJoystickAxis
-
-
Method Details
-
getMaxRawValue
public float getMaxRawValue()- Specified by:
getMaxRawValuein interfacecom.jme3.input.SensorJoystickAxis
-
setMaxRawValue
public void setMaxRawValue(float maxRawValue) - Specified by:
setMaxRawValuein interfacecom.jme3.input.SensorJoystickAxis
-
getLastRawValue
protected float getLastRawValue() -
setCurRawValue
protected void setCurRawValue(float rawValue) -
getJoystickAxisValue
protected float getJoystickAxisValue() -
isChanged
protected boolean isChanged() -
calibrateCenter
public void calibrateCenter()- Specified by:
calibrateCenterin interfacecom.jme3.input.SensorJoystickAxis
-