From bec9a8ecfb083975683be663f090fad16acf28b3 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 8 Jul 2025 23:38:29 +0200 Subject: [PATCH] SDL Joystick: Make thread hinting Windows-only, fixes #5762. --- src/qt/sdl_joystick.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/sdl_joystick.c b/src/qt/sdl_joystick.c index 83a2a67b1..ea3720eea 100644 --- a/src/qt/sdl_joystick.c +++ b/src/qt/sdl_joystick.c @@ -45,8 +45,10 @@ static SDL_Joystick *sdl_joy[MAX_PLAT_JOYSTICKS]; void joystick_init(void) { +#ifdef _WIN32 /* This is needed for SDL's Windows raw input backend to work properly without SDL video. */ SDL_SetHint(SDL_HINT_JOYSTICK_THREAD, "1"); +#endif if (SDL_InitSubSystem(SDL_INIT_JOYSTICK) != 0) { return;