setSensorEnabled method
Set whether data reporting for a gamepad sensor is enabled.
\param gamepad the gamepad to update. \param type the type of sensor to enable/disable. \param enabled whether data reporting should be enabled. \returns true on success or false on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
\sa SDL_GamepadHasSensor \sa SDL_GamepadSensorEnabled
extern SDL_DECLSPEC bool SDLCALL SDL_SetGamepadSensorEnabled(SDL_Gamepad *gamepad, SDL_SensorType type, bool enabled)
Implementation
bool setSensorEnabled(int type, bool enabled) {
return sdlSetGamepadSensorEnabled(this, type, enabled);
}