pub unsafe extern "C" fn glfwGetJoystickAxes(
jid: i32,
count: *mut i32,
) -> *const f32Expand description
@brief 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
@ref glfwJoystickPresent.
@param[in] jid The [joystick](@ref joysticks) to query.
@param[out] count Where to store the number of axis values in the returned
array. This is set to zero if the joystick is not present or an error
occurred.
@return An array of axis values, or NULL if the joystick is not present or
an [error](@ref error_handling) occurred.
@errors Possible errors include @ref GLFW_NOT_INITIALIZED, @ref GLFW_INVALID_ENUM and @ref GLFW_PLATFORM_ERROR.
@pointer_lifetime The returned array is allocated and freed by GLFW. You should not free it yourself. It is valid until the specified joystick is disconnected or the library is terminated.
@thread_safety This function must only be called from the main thread.
@sa @ref joystick_axis
@since Added in version 3.0. Replaces glfwGetJoystickPos.
@ingroup input