figure out secondary button names dynamically

This commit is contained in:
Glenn Maynard
2004-12-04 04:39:51 +00:00
parent d7a03bb37f
commit 36d462ffd6
4 changed files with 65 additions and 2 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
#include "ThemeManager.h"
#include "Game.h"
#include "ScreenDimensions.h"
#include "GameManager.h"
REGISTER_SCREEN_CLASS( ScreenTestInput );
@@ -58,7 +59,7 @@ void ScreenTestInput::Update( float fDeltaTime )
if( INPUTMAPPER->DeviceToGame(di,gi) )
{
CString sName = GAMESTATE->GetCurrentGame()->m_szButtonNames[gi.button];
CString sSecondary = GAMESTATE->GetCurrentGame()->m_szSecondaryFunction[gi.button];
CString sSecondary = GAMEMAN->GetSecondaryMenuButtonName( GAMESTATE->GetCurrentGame(), gi.button );
sTemp += ssprintf(" (Controller %d %s) %s", gi.controller+1, sName.c_str(), sSecondary.c_str() );
}