Sync SDL3 wiki -> header

[ci skip]
This commit is contained in:
SDL Wiki Bot
2026-11-10 02:31:59 +00:00
parent a00b14fee2
commit f599b192f0
+15 -5
View File
@@ -1407,9 +1407,15 @@ extern "C" {
* A variable controlling whether a separate thread should be used for
* joystick detection and updates.
*
* 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 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.
* 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:
*
@@ -1423,11 +1429,15 @@ extern "C" {
#define SDL_HINT_JOYSTICK_ASYNC "SDL_JOYSTICK_ASYNC"
/**
* A variable controlling the polling interval for asynchronous joystick updates.
* A variable controlling the polling interval for asynchronous joystick
* updates.
*
* If this hint is set to "-1" (the default), asynchronous joystick updates will be triggered when the event loop runs. Otherwise this value is the polling interval, in milliseconds, for asynchronous joystick updates.
* If this hint is set to "-1" (the default), asynchronous joystick updates
* will be triggered when the event loop runs. Otherwise this value is the
* polling interval, in milliseconds, for asynchronous joystick updates.
*
* Regardless of the value of this hint, you can trigger an update at a specific time using SDL_UpdateJoysticks()
* Regardless of the value of this hint, you can trigger an update at a
* specific time using SDL_UpdateJoysticks()
*
* This hint can be set anytime.
*