glfwGetGamepadAxes¶
Returns the state of the specified gamepad's axes.
If the gamepad is not present, or the given joystick is not a gamepad, this function will return an empty array.
The returned array is indexed by the GLFW gamepad axis constants:
- GLFW_GAMEPAD_AXIS_LEFT_X
- GLFW_GAMEPAD_AXIS_LEFT_Y
- GLFW_GAMEPAD_AXIS_RIGHT_X
- GLFW_GAMEPAD_AXIS_RIGHT_Y
- GLFW_GAMEPAD_AXIS_LEFT_TRIGGER
- GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER
- arguments
-
int
$joystick
The joystick to query.
- returns
-
array