allow rushing the timer with arrow buttons, too

This commit is contained in:
Glenn Maynard
2007-04-25 22:35:50 +00:00
parent 75e2a58944
commit bed13264a1
+11 -3
View File
@@ -76,10 +76,18 @@ void ScreenContinue::Input( const InputEventPlus &input )
if( IsTransitioning() )
return;
if( input.MenuI == MENU_BUTTON_START && input.type == IET_FIRST_PRESS && GAMESTATE->IsHumanPlayer(input.pn) )
if( input.type == IET_FIRST_PRESS && GAMESTATE->IsHumanPlayer(input.pn) )
{
m_MenuTimer->SetSeconds( floorf(m_MenuTimer->GetSeconds()) - 0.0001f );
return; // handled
switch( input.MenuI )
{
case GAME_BUTTON_START:
case MENU_BUTTON_UP:
case MENU_BUTTON_DOWN:
case MENU_BUTTON_LEFT:
case MENU_BUTTON_RIGHT:
m_MenuTimer->SetSeconds( floorf(m_MenuTimer->GetSeconds()) - 0.0001f );
return; // handled
}
}
ScreenWithMenuElements::Input( input );