This commit is contained in:
AJ Kelly
2010-07-03 21:57:01 -05:00
parent 4c8cec8489
commit a1cd8501b9
-6
View File
@@ -603,10 +603,7 @@ void InputMapper::AutoMapJoysticksForCurrentGame()
} }
//
// apply auto mappings // apply auto mappings
//
int iNumJoysticksMapped = 0; int iNumJoysticksMapped = 0;
FOREACH_CONST( InputDeviceInfo, vDevices, device ) FOREACH_CONST( InputDeviceInfo, vDevices, device )
{ {
@@ -618,9 +615,7 @@ void InputMapper::AutoMapJoysticksForCurrentGame()
if( !regex.Compare(sDescription) ) if( !regex.Compare(sDescription) )
continue; // driver names don't match continue; // driver names don't match
//
// We have a mapping for this joystick // We have a mapping for this joystick
//
GameController gc = (GameController)iNumJoysticksMapped; GameController gc = (GameController)iNumJoysticksMapped;
if( gc >= NUM_GameController ) if( gc >= NUM_GameController )
break; // stop mapping. We already mapped one device for each game controller. break; // stop mapping. We already mapped one device for each game controller.
@@ -695,7 +690,6 @@ bool InputMapper::CheckForChangedInputDevicesAndRemap( RString &sMessageOut )
} }
} }
bool bJoysticksChanged = vsCurrentJoysticks != vsLastSeenJoysticks; bool bJoysticksChanged = vsCurrentJoysticks != vsLastSeenJoysticks;
if( !bJoysticksChanged ) if( !bJoysticksChanged )
return false; return false;