Return whether a gamepad has a particular sensor.
Defined in <SDL3/SDL_gamepad.h>
bool SDL_GamepadHasSensor(SDL_Gamepad *gamepad, SDL_SensorType type);
SDL_Gamepad * | gamepad | the gamepad to query. |
SDL_SensorType | type | the type of sensor to query. |
(bool) Returns true if the sensor exists, false otherwise.
This function is available since SDL 3.1.3.