cleanup
This commit is contained in:
+1
-7
@@ -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;
|
||||||
@@ -803,7 +797,7 @@ GameButton InputMapper::GameButtonToMenuButton( GameButton gb ) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* If set (not PLAYER_INVALID), inputs from both GameControllers will be mapped
|
/* If set (not PLAYER_INVALID), inputs from both GameControllers will be mapped
|
||||||
* to the specified player. If PLAYER_INVALID, GameControllers will be mapped
|
* to the specified player. If PLAYER_INVALID, GameControllers will be mapped
|
||||||
* individually. */
|
* individually. */
|
||||||
void InputMapper::SetJoinControllers( PlayerNumber pn )
|
void InputMapper::SetJoinControllers( PlayerNumber pn )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user