Interface GLFWInputSystem.JoystickInputParameters
- Enclosing class:
GLFWInputSystem
public static interface GLFWInputSystem.JoystickInputParameters
Joystick input parameters per added device.
- Author:
- Matthew Tropiano
-
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the deadzone magnitude for a particular axis id.doubleGets the axis precision epsilon value.default JoystickAxisTypegetJoystickAxisType(int glfwAxisId) Gets a specific axis enumeration for a particular axis id.default JoystickButtonTypegetJoystickButtonType(int glfwButtonId) Gets a specific button enumeration for a particular button id.
-
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
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 functiongetJoystickAxisType(int)is called before this.- Parameters:
type- the joystick axis type.- Returns:
- the deadzone value.
-
getJoystickAxisType
Gets a specific axis enumeration for a particular axis id.- Parameters:
glfwAxisId- the GLFW axis id.- Returns:
- the returned value.
-
getJoystickButtonType
Gets a specific button enumeration for a particular button id.- Parameters:
glfwButtonId- the GLFW button id.- Returns:
- the returned value.
-