SDL_GamepadHasSensor - Return whether a gamepad has a particular sensor.
Contents
Availability
This function is available since SDL 3.2.0.
Function Parameters
gamepad
the gamepad to query.
type the type of sensor to query.
Header File
Defined in SDL3/SDL_gamepad.h
Name
SDL_GamepadHasSensor - Return whether a gamepad has a particular sensor.
Return Value
Returns true if the sensor exists, false otherwise.
See Also
•(3), SDL_GetGamepadSensorData(3), •(3), SDL_GetGamepadSensorDataRate(3), •(3), SDL_SetGamepadSensorEnabled(3) Simple Directmedia Layer SDL 3.2.10 SDL_GamepadHasSensor(3)
Synopsis
#include"SDL3/SDL.h"boolSDL_GamepadHasSensor(SDL_Gamepad*gamepad,SDL_SensorTypetype);
