From eb729c55e44d47089e16c69cb0a6d48950e99c0c Mon Sep 17 00:00:00 2001 From: wolfy852 Date: Thu, 27 Dec 2018 18:28:09 -0600 Subject: [PATCH] Make I_GetJoystickDeviceIndex account for controllers 3 and 4 --- src/sdl/i_system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index c8be862d..19a3e5e4 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -866,7 +866,7 @@ INT32 I_GetJoystickDeviceIndex(SDL_Joystick *dev) SDL_Joystick *test = SDL_JoystickOpen(i); if (test && test == dev) return i; - else if (JoyInfo.dev != test && JoyInfo2.dev != test) + else if (JoyInfo.dev != test && JoyInfo2.dev != test && JoyInfo3.dev != test && JoyInfo4.dev != test) SDL_JoystickClose(test); }