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
Returns true on success or false on failure; call SDL_GetError() for more information.
Thread Safety
It is safe to call this function from any thread.
Availability
This function is available since SDL 3.2.0.
See Also
Referenced By
SDL_GamepadHasSensor(3), SDL_GamepadSensorEnabled(3).
SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS