Set whether data reporting for a game controller sensor is enabled.
int SDL_GameControllerSetSensorEnabled(SDL_GameController *gamecontroller, SDL_SensorType type, SDL_bool enabled);
gamecontroller | The controller to update |
type | The type of sensor to enable/disable |
enabled | Whether data reporting should be enabled |
Returns 0 or -1 if an error occurred.
This function is available since SDL 2.0.14.