Set the state of gamepad event processing.
Defined in <SDL3/SDL_gamepad.h>
void SDL_SetGamepadEventsEnabled(SDL_bool enabled);
enabled | whether to process gamepad events or not |
If gamepad events are disabled, you must call SDL_UpdateGamepads() yourself and check the state of the gamepad when you want gamepad information.
This function is available since SDL 3.0.0.
CategoryAPI, CategoryAPIFunction