Function SDL_JoystickGetAxisInitialState
pub unsafe extern "C" fn SDL_JoystickGetAxisInitialState(
joystick: *mut _SDL_Joystick,
axis: i32,
state: *mut i16,
) -> SDL_bool
Available on crate feature
dep_sdl2
only.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.