Function sdl2_sys::SDL_JoystickGetAxisInitialState
source ยท pub unsafe extern "C" fn SDL_JoystickGetAxisInitialState(
joystick: *mut SDL_Joystick,
axis: c_int,
state: *mut Sint16,
) -> SDL_bool
Expand description
Get the initial state of an axis control on a joystick.
The state is a value ranging from -32768 to 32767.
The axis indices start at index 0.
\param joystick an SDL_Joystick structure containing joystick information \param axis the axis to query; the axis indices start at index 0 \param state Upon return, the initial value is supplied here. \return SDL_TRUE if this axis has any initial value, or SDL_FALSE if not.
\since This function is available since SDL 2.0.6.