From 2a8f4d02cfcfed6616100b59cb03920524d56a45 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 20 May 2005 00:41:22 +0000 Subject: [PATCH] fix eating keys --- stepmania/src/ScreenDebugOverlay.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ScreenDebugOverlay.cpp b/stepmania/src/ScreenDebugOverlay.cpp index 771ee7c8d7..74b98da9ad 100644 --- a/stepmania/src/ScreenDebugOverlay.cpp +++ b/stepmania/src/ScreenDebugOverlay.cpp @@ -301,14 +301,14 @@ bool ScreenDebugOverlay::OverlayInput( const DeviceInput& DeviceI, const InputEv g_bIsDisplayed = false; } - if( type != IET_FIRST_PRESS ) - return true; /* eat the input but do nothing */ - FOREACH_DebugLine( i ) { if( (g_bIsDisplayed && DeviceI == g_Mappings.debugButton[i]) || (IsGameplay() && DeviceI == g_Mappings.gameplayButton[i]) ) { + if( type != IET_FIRST_PRESS ) + return true; /* eat the input but do nothing */ + BitmapText &txt1 = m_textButton[i]; txt1.FinishTweening(); float fZoom = txt1.GetZoom();