From ea4950e5c5e689e0b3e0f06720d7ec2b2264f5a7 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 28 Feb 2005 04:07:37 +0000 Subject: [PATCH] reset game on Ctrl+F2 --- stepmania/src/StepMania.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 2a2481db20..1fc1041167 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -1292,7 +1292,9 @@ bool HandleGlobalInputs( DeviceInput DeviceI, InputEventType type, GameInput Gam if(DeviceI == DeviceInput(DEVICE_KEYBOARD, KEY_F2)) { - if( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, KEY_LSHIFT) ) ) + bool bShift = INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, KEY_LSHIFT) ); + bool bCtrl = INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, KEY_LCTRL) ); + if( bShift ) { // HACK: Also save bookkeeping and profile info for debugging // so we don't have to play through a whole song to get new output. @@ -1312,7 +1314,7 @@ bool HandleGlobalInputs( DeviceInput DeviceI, InputEventType type, GameInput Gam /* If we're in screen test mode, reload the screen. */ - if( PREFSMAN->m_bScreenTestMode ) + if( PREFSMAN->m_bScreenTestMode || bCtrl ) ResetGame( true ); else SCREENMAN->SystemMessage( "Reloaded metrics and textures" );