SDL_SetGamepadSensorEnabled - Man Page
Set whether data reporting for a gamepad sensor is enabled.
Synopsis
#include <SDL3/SDL_gamepad.h> bool SDL_SetGamepadSensorEnabled(SDL_Gamepad *gamepad, SDL_SensorType type, bool enabled);
Function Parameters
- gamepad
the gamepad to update.
- type
the type of sensor to enable/disable.
- enabled
whether data reporting should be enabled.
Return Value
for more information.
Availability
This function is available since SDL 3.2.0.
See Also
Referenced By
SDL_GamepadHasSensor(3), SDL_GamepadSensorEnabled(3).
SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS