Consistent insensitive string comparisons.
This seems to reduce the need for a #define, but I need someone on the Windows side to check.
This commit is contained in:
+1
-1
@@ -948,7 +948,7 @@ MultiPlayer InputMapper::InputDeviceToMultiPlayer( InputDevice id )
|
||||
GameButton InputScheme::ButtonNameToIndex( const RString &sButtonName ) const
|
||||
{
|
||||
for( GameButton gb=(GameButton) 0; gb<m_iButtonsPerController; gb=(GameButton)(gb+1) )
|
||||
if( stricmp(GetGameButtonName(gb), sButtonName) == 0 )
|
||||
if( sButtonName.EqualsNoCase(GetGameButtonName(gb)) )
|
||||
return gb;
|
||||
|
||||
return GameButton_Invalid;
|
||||
|
||||
Reference in New Issue
Block a user