From 88d5a5a2b9eaffcb83ecac4f569194527a844d15 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 6 Feb 2026 10:58:34 -0800
Subject: [PATCH] Clarify that SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS can be
set anytime
Fixes https://github.com/libsdl-org/sdlwiki/issues/914
---
include/SDL3/SDL_joystick.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/SDL3/SDL_joystick.h b/include/SDL3/SDL_joystick.h
index 52fb0feb0834d..42e6b1ded9277 100644
--- a/include/SDL3/SDL_joystick.h
+++ b/include/SDL3/SDL_joystick.h
@@ -46,8 +46,7 @@
* and load appropriate drivers.
*
* If you would like to receive joystick updates while the application is in
- * the background, you should set the following hint before calling
- * SDL_Init(): SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS
+ * the background, you should set the SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS hint.
*
* SDL can provide virtual joysticks as well: the app defines an imaginary
* controller with SDL_AttachVirtualJoystick(), and then can provide inputs