InputScheme

This commit is contained in:
Glenn Maynard
2006-09-30 08:24:05 +00:00
parent b6c3ea14d7
commit 3f315b0464
7 changed files with 26 additions and 28 deletions
+1 -2
View File
@@ -97,7 +97,6 @@ bool CodeItem::Load( RString sButtonsNames )
{
buttons.clear();
const Game* pGame = GAMESTATE->GetCurrentGame();
vector<RString> asButtonNames;
bool bHasAPlus = sButtonsNames.find( '+' ) != string::npos;
@@ -131,7 +130,7 @@ bool CodeItem::Load( RString sButtonsNames )
const RString sButtonName = asButtonNames[i];
// Search for the corresponding GameButton
const GameButton gb = pGame->ButtonNameToIndex( sButtonName );
const GameButton gb = INPUTMAPPER->GetInputScheme()->ButtonNameToIndex( sButtonName );
if( gb == GameButton_Invalid )
{
LOG->Trace( "The code '%s' contains an unrecognized button '%s'.", sButtonsNames.c_str(), sButtonName.c_str() );