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
+9 -1
View File
@@ -76,11 +76,19 @@ void ScreenContinue::Input( const InputEventPlus &input )
if( IsTransitioning() ) if( IsTransitioning() )
return; 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) )
{ {
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 ); m_MenuTimer->SetSeconds( floorf(m_MenuTimer->GetSeconds()) - 0.0001f );
return; // handled return; // handled
} }
}
ScreenWithMenuElements::Input( input ); ScreenWithMenuElements::Input( input );
} }