Class 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, java.lang.String name, java.lang.String logicalId, boolean isAnalog, boolean isRelative, float deadZone, float maxRawValue)  
    • Constructor Detail

      • AndroidSensorJoystickAxis

        public 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 Detail

      • 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