Rename GameButtonType_INVALID to GameButtonType_Menu.
Strictly that's not right but close enough.
This commit is contained in:
+11
-11
@@ -17,17 +17,17 @@ TapNoteScore Game::MapTapNoteScore( TapNoteScore tns ) const
|
|||||||
|
|
||||||
static const Game::PerButtonInfo g_CommonButtonInfo[] =
|
static const Game::PerButtonInfo g_CommonButtonInfo[] =
|
||||||
{
|
{
|
||||||
{ GameButtonType_INVALID }, // GAME_BUTTON_MENULEFT
|
{ GameButtonType_Menu }, // GAME_BUTTON_MENULEFT
|
||||||
{ GameButtonType_INVALID }, // GAME_BUTTON_MENURIGHT
|
{ GameButtonType_Menu }, // GAME_BUTTON_MENURIGHT
|
||||||
{ GameButtonType_INVALID }, // GAME_BUTTON_MENUUP
|
{ GameButtonType_Menu }, // GAME_BUTTON_MENUUP
|
||||||
{ GameButtonType_INVALID }, // GAME_BUTTON_MENUDOWN
|
{ GameButtonType_Menu }, // GAME_BUTTON_MENUDOWN
|
||||||
{ GameButtonType_INVALID }, // GAME_BUTTON_START
|
{ GameButtonType_Menu }, // GAME_BUTTON_START
|
||||||
{ GameButtonType_INVALID }, // GAME_BUTTON_SELECT
|
{ GameButtonType_Menu }, // GAME_BUTTON_SELECT
|
||||||
{ GameButtonType_INVALID }, // GAME_BUTTON_BACK
|
{ GameButtonType_Menu }, // GAME_BUTTON_BACK
|
||||||
{ GameButtonType_INVALID }, // GAME_BUTTON_COIN
|
{ GameButtonType_Menu }, // GAME_BUTTON_COIN
|
||||||
{ GameButtonType_INVALID }, // GAME_BUTTON_OPERATOR
|
{ GameButtonType_Menu }, // GAME_BUTTON_OPERATOR
|
||||||
{ GameButtonType_INVALID }, // GAME_BUTTON_EFFECT_UP
|
{ GameButtonType_Menu }, // GAME_BUTTON_EFFECT_UP
|
||||||
{ GameButtonType_INVALID }, // GAME_BUTTON_EFFECT_DOWN
|
{ GameButtonType_Menu }, // GAME_BUTTON_EFFECT_DOWN
|
||||||
};
|
};
|
||||||
|
|
||||||
const Game::PerButtonInfo *Game::GetPerButtonInfo( GameButton gb ) const
|
const Game::PerButtonInfo *Game::GetPerButtonInfo( GameButton gb ) const
|
||||||
|
|||||||
@@ -321,7 +321,7 @@ const RString& ScoreEventToString( ScoreEvent se );
|
|||||||
enum GameButtonType
|
enum GameButtonType
|
||||||
{
|
{
|
||||||
GameButtonType_Step,
|
GameButtonType_Step,
|
||||||
GameButtonType_INVALID
|
GameButtonType_Menu
|
||||||
};
|
};
|
||||||
|
|
||||||
/** @brief The list of judge types for the tap note scores. */
|
/** @brief The list of judge types for the tap note scores. */
|
||||||
|
|||||||
+1
-1
@@ -3230,7 +3230,7 @@ bool ScreenEdit::InputPlay( const InputEventPlus &input, EditButton EditB )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( gbt == GameButtonType_INVALID && input.type == IET_FIRST_PRESS )
|
if( gbt == GameButtonType_Menu && input.type == IET_FIRST_PRESS )
|
||||||
{
|
{
|
||||||
switch( EditB )
|
switch( EditB )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2568,7 +2568,7 @@ bool ScreenGameplay::Input( const InputEventPlus &input )
|
|||||||
GameButtonType gbt = GAMESTATE->m_pCurGame->GetPerButtonInfo(input.GameI.button)->m_gbt;
|
GameButtonType gbt = GAMESTATE->m_pCurGame->GetPerButtonInfo(input.GameI.button)->m_gbt;
|
||||||
switch( gbt )
|
switch( gbt )
|
||||||
{
|
{
|
||||||
case GameButtonType_INVALID:
|
case GameButtonType_Menu:
|
||||||
return false;
|
return false;
|
||||||
case GameButtonType_Step:
|
case GameButtonType_Step:
|
||||||
if( iCol != -1 )
|
if( iCol != -1 )
|
||||||
|
|||||||
Reference in New Issue
Block a user