DOKK / manpages / debian 13 / libsdl3-doc / SDL_GamepadSensorEnabled.3.en
SDL_GamepadSensorEnabled(3) SDL3 FUNCTIONS SDL_GamepadSensorEnabled(3)

SDL_GamepadSensorEnabled - Query whether sensor data reporting is enabled for a gamepad.

Defined in SDL3/SDL_gamepad.h

#include "SDL3/SDL.h"
bool SDL_GamepadSensorEnabled(SDL_Gamepad *gamepad, SDL_SensorType type);

the gamepad to query.
the type of sensor to query.

Returns true if the sensor is enabled, false otherwise.

This function is available since SDL 3.2.0.

(3), SDL_SetGamepadSensorEnabled(3)

SDL 3.2.10 Simple Directmedia Layer