init joyid here
i hate the controller code
This commit is contained in:
1 parent
ceff2e9be6
commit
d3b786d725
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user