Clarify that SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS can be set anytime

Fixes https://github.com/libsdl-org/sdlwiki/issues/914
This commit is contained in:
Sam Lantinga
2026-02-06 10:58:34 -08:00
parent 9f5747ccd4
commit 88d5a5a2b9
+1 -2
View File
@@ -46,8 +46,7 @@
* and load appropriate drivers. * and load appropriate drivers.
* *
* If you would like to receive joystick updates while the application is in * If you would like to receive joystick updates while the application is in
* the background, you should set the following hint before calling * the background, you should set the SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS hint.
* SDL_Init(): SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS
* *
* SDL can provide virtual joysticks as well: the app defines an imaginary * SDL can provide virtual joysticks as well: the app defines an imaginary
* controller with SDL_AttachVirtualJoystick(), and then can provide inputs * controller with SDL_AttachVirtualJoystick(), and then can provide inputs