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_ROTATION

    Fields inherited from interface com.jme3.input.SensorJoystickAxis

    ORIENTATION_X, ORIENTATION_Y, ORIENTATION_Z
  • Constructor Summary

    Constructors
    Constructor
    Description
    AndroidSensorJoystickAxis(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 Type
    Method
    Description
    void
     
    protected float
     
    protected float
     
    float
     
    protected boolean
     
    protected void
    setCurRawValue(float rawValue)
     
    void
    setMaxRawValue(float maxRawValue)
     

    Methods inherited from class com.jme3.input.DefaultJoystickAxis

    assignAxis, getAxisId, getDeadZone, getJoystick, getLogicalId, getName, isAnalog, isRelative, setDeadZone, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AndroidSensorJoystickAxis

      public AndroidSensorJoystickAxis(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 Details

    • getMaxRawValue

      public float getMaxRawValue()
      Specified by:
      getMaxRawValue in interface com.jme3.input.SensorJoystickAxis
    • setMaxRawValue

      public void setMaxRawValue(float maxRawValue)
      Specified by:
      setMaxRawValue in interface com.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:
      calibrateCenter in interface com.jme3.input.SensorJoystickAxis