From 7bbbf93d7fc08356e24948c4d662bf5a2e4771a6 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 23 Sep 2026 18:24:30 +0200 Subject: [PATCH] dont reset JoyInfo in I_InitJoystick seems to fix wonky behavior when changing controllers per player --- src/sdl/i_system.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 60d34231f..f0d4462d9 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -1027,6 +1027,8 @@ void I_InitJoystick(UINT8 index) } } +#if 0 // no dont do this + // reset everything just in case JoyInfo[index].dev = NULL; JoyInfo[index].oldjoy = -1; #if (SDL_VERSION_ATLEAST(2,32,4)) @@ -1034,6 +1036,7 @@ void I_InitJoystick(UINT8 index) #endif JoyInfo[index].hasled = false; JoyInfo[index].hasrumble = false; +#endif if (cv_usejoystick[index].value) newcontroller = SDL_GameControllerOpen(cv_usejoystick[index].value-1);