SDL Joystick: Make thread hinting Windows-only, fixes #5762.

This commit is contained in:
OBattler
2025-07-08 23:38:29 +02:00
parent 283ba78090
commit bec9a8ecfb

View File

@@ -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;