Function sdl2_sys::SDL_GameControllerHasAxis
source · pub unsafe extern "C" fn SDL_GameControllerHasAxis(
gamecontroller: *mut SDL_GameController,
axis: SDL_GameControllerAxis,
) -> SDL_bool
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.