Set the state of joystick event processing.
void SDL_SetJoystickEventsEnabled(SDL_bool enabled);
enabled | whether to process joystick events or not |
If joystick events are disabled, you must call SDL_UpdateJoysticks() yourself and check the state of the joystick when you want joystick information.
This function is available since SDL 3.0.0.