Set whether data reporting for a gamepad sensor is enabled.
Defined in <SDL3/SDL_gamepad.h>
gamepad | The gamepad to update |
type | The type of sensor to enable/disable |
enabled | Whether data reporting should be enabled |
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
This function is available since SDL 3.0.0.