Function SDL_GameControllerHasAxis
pub unsafe extern "C" fn SDL_GameControllerHasAxis(
gamecontroller: *mut _SDL_GameController,
axis: SDL_GameControllerAxis,
) -> SDL_bool
Available on crate feature
dep_sdl2
only.Expand description
Query whether a game controller has a given axis.
This merely reports whether the controller’s mapping defined this axis, as that is all the information SDL has about the physical device.
\param gamecontroller a game controller \param axis an axis enum value (an SDL_GameControllerAxis value) \returns SDL_TRUE if the controller has this axis, SDL_FALSE otherwise.
\since This function is available since SDL 2.0.14.