From 588f6e413d473548e429242bb277ac57230eed91 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 24 Jan 2006 06:18:09 +0000 Subject: [PATCH] holdForSlow, holdForFast --- stepmania/src/ScreenDebugOverlay.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ScreenDebugOverlay.cpp b/stepmania/src/ScreenDebugOverlay.cpp index 914eec26dc..db8bb7bf2e 100644 --- a/stepmania/src/ScreenDebugOverlay.cpp +++ b/stepmania/src/ScreenDebugOverlay.cpp @@ -87,12 +87,16 @@ struct MapDebugToDI { DeviceInput holdForDebug1; DeviceInput holdForDebug2; + DeviceInput holdForSlow; + DeviceInput holdForFast; DeviceInput debugButton[MAX_DEBUG_LINES]; DeviceInput gameplayButton[MAX_DEBUG_LINES]; void Clear() { holdForDebug1.MakeInvalid(); holdForDebug2.MakeInvalid(); + holdForSlow.MakeInvalid(); + holdForFast.MakeInvalid(); for( int i=0; iIsBeingPressed( DeviceInput(DEVICE_KEYBOARD, KEY_TAB) ) ) + if( INPUTFILTER->IsBeingPressed(g_Mappings.holdForFast) ) { - if( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, KEY_ACCENT) ) ) + if( INPUTFILTER->IsBeingPressed(g_Mappings.holdForSlow) ) fRate = 0; /* both; stop time */ else fRate *= 4; } - else if( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, KEY_ACCENT) ) ) + else if( INPUTFILTER->IsBeingPressed(g_Mappings.holdForSlow) ) { fRate /= 4; }