Query the state of joystick event processing.
void); SDL_bool SDL_JoystickEventsEnabled(
Returns SDL_TRUE if joystick events are being processed, SDL_FALSE otherwise.
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.