move GetMenuButtonSecondaryFunction into InputScheme

This commit is contained in:
Glenn Maynard
2006-11-21 07:16:19 +00:00
parent 52a878504b
commit 91ee16754f
6 changed files with 12 additions and 18 deletions
+1 -3
View File
@@ -4,8 +4,6 @@
#include "RageLog.h"
#include "RageInput.h"
#include "InputMapper.h"
#include "GameManager.h"
#include "GameState.h"
#include "ThemeManager.h"
#include "ScreenDimensions.h"
#include "InputEventPlus.h"
@@ -104,7 +102,7 @@ void ScreenMapControllers::Init()
BitmapText *pSecondary = new BitmapText;
pSecondary->SetName( "Secondary" );
pSecondary->LoadFromFont( THEME->GetPathF("Common","title") );
MenuButton mb = GAMEMAN->GetMenuButtonSecondaryFunction( GAMESTATE->GetCurrentGame(), pKey->m_GameButton );
MenuButton mb = INPUTMAPPER->GetInputScheme()->GetMenuButtonSecondaryFunction( pKey->m_GameButton );
RString sText;
if( mb != MenuButton_Invalid )
sText = MenuButtonToLocalizedString( mb );