From 604fa7281bcc4f4eae457f67b3057fef5bd0bb86 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 6f7478f81..510db2802 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -1021,6 +1021,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)) @@ -1028,6 +1030,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);