SDL_GamepadHasSensor - Man Page
Return whether a gamepad has a particular sensor.
Synopsis
#include <SDL3/SDL_gamepad.h> bool SDL_GamepadHasSensor(SDL_Gamepad *gamepad, SDL_SensorType type);
Function Parameters
- gamepad
the gamepad to query.
- type
the type of sensor to query.
Return Value
Returns true if the sensor exists, false otherwise.
Thread Safety
It is safe to call this function from any thread.
Availability
This function is available since SDL 3.2.0.
See Also
SDL_GetGamepadSensorData(3), SDL_GetGamepadSensorDataRate(3), SDL_SetGamepadSensorEnabled(3)
Referenced By
SDL_SetGamepadSensorEnabled(3).
SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS