Return whether a gamepad has a particular sensor.
Defined in <SDL3/SDL_gamepad.h>
SDL_bool SDL_GamepadHasSensor(SDL_Gamepad *gamepad, SDL_SensorType type);
gamepad | The gamepad to query |
type | The type of sensor to query |
Returns SDL_TRUE if the sensor exists, SDL_FALSE otherwise.
This function is available since SDL 3.0.0.
CategoryAPI, CategoryAPIFunction