Make I_GetJoystickDeviceIndex account for controllers 3 and 4

This commit is contained in:
wolfy852 2018-12-27 18:28:09 -06:00
parent 630552f428
commit eb729c55e4

View file

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