glfwGetJoystickAxes¶
Returns the values of all axes of the specified joystick.
This function returns the values of all axes of the specified joystick. Each element in the array is a value between -1.0 and 1.0.
If the specified joystick is not present this function will return NULL
but will not generate an error. This can be used instead of first calling
glfwJoystickPresent
.
- arguments
-
int
$jid
Thejoystick
to query.
- returns
-
array