Interface GLFWInputSystem.JoystickInputParameters

Enclosing class:
GLFWInputSystem

public static interface GLFWInputSystem.JoystickInputParameters
Joystick input parameters per added device.
Author:
Matthew Tropiano
  • Method Details

    • getAxisPrecisionEpsilon

      double getAxisPrecisionEpsilon()
      Gets the axis precision epsilon value. Axis changes are only reported if the previous value has changed by a magnitude greater than this value (which is usually a very small one).
      Returns:
      the epsilon value.
    • getAxisDeadzone

      double getAxisDeadzone(JoystickAxisType type)
      Gets the deadzone magnitude for a particular axis id. Axis changes are only reported if the magnitude of the axis reading is greater than this value. The function getJoystickAxisType(int) is called before this.
      Parameters:
      type - the joystick axis type.
      Returns:
      the deadzone value.
    • getJoystickAxisType

      default JoystickAxisType getJoystickAxisType(int glfwAxisId)
      Gets a specific axis enumeration for a particular axis id.
      Parameters:
      glfwAxisId - the GLFW axis id.
      Returns:
      the returned value.
    • getJoystickButtonType

      default JoystickButtonType getJoystickButtonType(int glfwButtonId)
      Gets a specific button enumeration for a particular button id.
      Parameters:
      glfwButtonId - the GLFW button id.
      Returns:
      the returned value.