A variable controlling whether a separate thread should be used for joystick detection and updates.
Defined in <SDL3/SDL_hints.h>
#define SDL_HINT_JOYSTICK_ASYNC "SDL_JOYSTICK_ASYNC"If this is enabled, joystick initialization will return immediately. Connected joysticks and gamepads will not be immediately visible, they will come in as hotplug events in the background. SDL_UpdateJoysticks() will also return immediately and joystick state will be updated asynchronously in the background. Joystick and gamepad events are delivered off the main thread.
If you enable this hint, you should not hold the joystick lock while quitting the joystick subsystem.
The variable can be set to the following values:
This hint should be set before SDL is initialized.
This hint is available since SDL 3.6.0.