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
-
-
Constructor Summary
Constructors Constructor Description AndroidSensorJoystickAxis(com.jme3.input.InputManager inputManager, com.jme3.input.Joystick parent, int axisIndex, java.lang.String name, java.lang.String logicalId, boolean isAnalog, boolean isRelative, float deadZone, float maxRawValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalibrateCenter()protected floatgetJoystickAxisValue()protected floatgetLastRawValue()floatgetMaxRawValue()protected booleanisChanged()protected voidsetCurRawValue(float rawValue)voidsetMaxRawValue(float maxRawValue)
-
-
-
Method Detail
-
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
-
-