mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-15 01:01:43 +00:00
Make I_GetJoystickDeviceIndex account for controllers 3 and 4
This commit is contained in:
parent
630552f428
commit
eb729c55e4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue