Function SDL_GameControllerHasSensor
pub unsafe extern "C" fn SDL_GameControllerHasSensor(
gamecontroller: *mut _SDL_GameController,
type_: SDL_SensorType,
) -> SDL_bool
Available on crate feature
dep_sdl2
only.Expand description
Return whether a game controller has a particular sensor.
\param gamecontroller The controller to query \param type The type of sensor to query \returns SDL_TRUE if the sensor exists, SDL_FALSE otherwise.
\since This function is available since SDL 2.0.14.