add FOREACH_GameButtonInScheme

This commit is contained in:
Glenn Maynard
2006-11-21 05:39:56 +00:00
parent f4583be663
commit 67433f7f83
4 changed files with 10 additions and 9 deletions
+3 -3
View File
@@ -26,10 +26,10 @@ RString GameButtonToLocalizedString( const InputScheme* pInputs, GameButton i )
GameButton StringToGameButton( const InputScheme* pInputs, const RString& s )
{
for( int i=0; i<pInputs->m_iButtonsPerController; i++ )
FOREACH_GameButtonInScheme( pInputs, i )
{
if( s == GameButtonToString(pInputs,(GameButton)i) )
return (GameButton)i;
if( s == GameButtonToString(pInputs, i) )
return i;
}
return GameButton_Invalid;
}