From f599b192f01ac7a50bcbf449617ea3a90a281d75 Mon Sep 17 00:00:00 2001 From: SDL Wiki Bot Date: Tue, 10 Nov 2026 02:31:59 +0000 Subject: [PATCH] Sync SDL3 wiki -> header [ci skip] --- include/SDL3/SDL_hints.h | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/include/SDL3/SDL_hints.h b/include/SDL3/SDL_hints.h index caa044b9d0..1417724eb0 100644 --- a/include/SDL3/SDL_hints.h +++ b/include/SDL3/SDL_hints.h @@ -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. *