SDL_GamepadSensorEnabled - Man Page
Query whether sensor data reporting is enabled for a gamepad.
Header File
Defined in SDL3/SDL_gamepad.h
Synopsis
#include "SDL3/SDL.h" bool SDL_GamepadSensorEnabled(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 is enabled, false otherwise.
Availability
This function is available since SDL 3.2.0.
See Also
Referenced By
SDL_SetGamepadSensorEnabled(3).
SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS