Set the state of joystick event processing.
Defined in <SDL3/SDL_joystick.h>
void SDL_SetJoystickEventsEnabled(bool enabled);
bool | 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.1.3.