SDL_GamepadHasSensor3
Return whether a gamepad has a particular sensor.
Usage
#include "SDL3/SDL.h"
bool SDL_GamepadHasSensor(SDL_Gamepad *gamepad, SDL_SensorType type);
Header file
Defined in SDL3/SDL_gamepad.h
Function parameters
gamepad
|
the gamepad to query. |
|---|---|
type
|
the type of sensor to query. |
Return value
Returns true if the sensor exists, false otherwise.