From bed13264a1026546edbbe91f0b25a99811e3b5bf Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 25 Apr 2007 22:35:50 +0000 Subject: [PATCH] allow rushing the timer with arrow buttons, too --- stepmania/src/ScreenContinue.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ScreenContinue.cpp b/stepmania/src/ScreenContinue.cpp index e6df9fe6eb..e40212237c 100644 --- a/stepmania/src/ScreenContinue.cpp +++ b/stepmania/src/ScreenContinue.cpp @@ -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 );