Function fermium::gamecontroller::SDL_GameControllerHasSensor [−][src]
pub unsafe extern "C" fn SDL_GameControllerHasSensor(
gamecontroller: *mut SDL_GameController,
type_: SDL_SensorType
) -> SDL_bool
Return whether a game controller has a particular sensor.
gamecontroller
The controller to querytype
The type of sensor to query
Returns: SDL_TRUE
if the sensor exists, SDL_FALSE
otherwise.