From b1d8b2a51e614fde3d38222c9361ead3792d09d1 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 25 Sep 2004 06:40:18 +0000 Subject: [PATCH] simplify --- stepmania/src/InputFilter.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/stepmania/src/InputFilter.cpp b/stepmania/src/InputFilter.cpp index b5f2b3aa30..ec956631a8 100644 --- a/stepmania/src/InputFilter.cpp +++ b/stepmania/src/InputFilter.cpp @@ -60,15 +60,10 @@ void InputFilter::ButtonPressed( DeviceInput di, bool Down ) if( bs.m_BeingHeld == Down ) return; - const bool WasBeingPressed = IsBeingPressed( di ); - bs.m_BeingHeld = Down; bs.m_fSecsHeld = 0; - if( WasBeingPressed != IsBeingPressed(di) ) - { - InputEventType iet = IsBeingPressed(di)? IET_FIRST_PRESS:IET_RELEASE; - queue.push_back( InputEvent(di,iet) ); - } + + queue.push_back( InputEvent(di,Down? IET_FIRST_PRESS:IET_RELEASE) ); } /* Release all buttons on the given device. */