init joyid here

i hate the controller code
This commit is contained in:
Alug committed 2025-02-17 21:58:27 +01:00
1 parent ceff2e9be6
commit d3b786d725
1 file changed
+2 -2
+2 -2
View File
@@ -1253,8 +1253,6 @@ void I_GetJoystickEvents(UINT8 index)
\param fname name of joystick
\return axises
*/
static int joy_open(int playerIndex, int joyIndex)
{
@@ -1390,6 +1388,8 @@ void I_InitJoystick(UINT8 index)
break;
}
JoyInfo[index].id = I_GetJoystickDeviceIndex(JoyInfo[index].dev);
if (newcontroller && i < MAXSPLITSCREENPLAYERS) // don't override an active device
{
cv_usejoystick[index].value = JoyInfo[index].id + 1;