merge m_SecondaryMenuButton into GameButtonInfo
This commit is contained in:
@@ -40,17 +40,18 @@ public:
|
||||
int m_iButtonsPerController;
|
||||
struct GameButtonInfo
|
||||
{
|
||||
char m_szName[60]; // The name used by the button graphics system. e.g. "left", "right", "middle C", "snare"
|
||||
const char *m_szName; // The name used by the button graphics system. e.g. "left", "right", "middle C", "snare"
|
||||
MenuButton m_SecondaryMenuButton;
|
||||
};
|
||||
/* Data for each Game-specific GameButton. This starts at GAME_BUTTON_NEXT. */
|
||||
const char *m_szGameButtonNames[NUM_GameButton];
|
||||
MenuButton m_SecondaryMenuButton[NUM_GameButton];
|
||||
GameButtonInfo m_GameButtonInfo[NUM_GameButton];
|
||||
const InputMapping *m_Maps;
|
||||
|
||||
GameButton ButtonNameToIndex( const RString &sButtonName ) const;
|
||||
MenuButton GameInputToMenuButton( GameInput GameI ) const;
|
||||
void MenuButtonToGameInputs( MenuButton MenuI, PlayerNumber pn, GameInput GameIout[4] ) const;
|
||||
MenuButton GetMenuButtonSecondaryFunction( GameButton gb ) const;
|
||||
const GameButtonInfo *GetGameButtonInfo( GameButton gb ) const;
|
||||
const char *GetGameButtonName( GameButton gb ) const;
|
||||
};
|
||||
#define FOREACH_GameButtonInScheme( s, var ) for( GameButton var=(GameButton)0; var<s->m_iButtonsPerController; enum_add<GameButton>( var, +1 ) )
|
||||
|
||||
Reference in New Issue
Block a user