From 3fc0d7557019ab1c382bd10e1d9a3ada80a15860 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 8 Sep 2006 18:51:12 +0000 Subject: [PATCH] remove IET_LEVEL_CHANGED --- stepmania/src/InputFilter.h | 6 ------ stepmania/src/ScreenEdit.cpp | 4 ---- stepmania/src/ScreenEz2SelectMusic.cpp | 2 +- stepmania/src/ScreenGameplay.cpp | 3 --- stepmania/src/ScreenSelectMusic.cpp | 1 - 5 files changed, 1 insertion(+), 15 deletions(-) diff --git a/stepmania/src/InputFilter.h b/stepmania/src/InputFilter.h index 2814582b54..7a5c96fe4b 100644 --- a/stepmania/src/InputFilter.h +++ b/stepmania/src/InputFilter.h @@ -18,12 +18,6 @@ enum InputEventType /* The device is no longer pressed. Exactly one IET_RELEASE event will be sent * for each IET_FIRST_PRESS. */ IET_RELEASE, - - /* The depression level of a button has changed. Read di.level to find the new - * value. This can be sent outside of a IET_FIRST_PRESS/IET_RELEASE pair, since - * a button/axis can have a non-zero level (eg. outside the axis dead zone) without - * being high enough to count as a press. */ - IET_LEVEL_CHANGED }; struct InputEvent diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index a765cedccd..c7f24daec0 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -1149,9 +1149,6 @@ static LocalizedString SWITCHED_TO ( "ScreenEdit", "Switched to" ); static LocalizedString NO_BACKGROUNDS_AVAILABLE ( "ScreenEdit", "No backgrounds available" ); void ScreenEdit::InputEdit( const InputEventPlus &input, EditButton EditB ) { - if( input.type == IET_LEVEL_CHANGED ) - return; // don't care - if( input.type == IET_RELEASE ) { if( EditPressed( EDIT_BUTTON_SCROLL_SELECT, input.DeviceI ) ) @@ -1969,7 +1966,6 @@ void ScreenEdit::InputRecord( const InputEventPlus &input, EditButton EditB ) case IET_SLOW_REPEAT: case IET_FAST_REPEAT: case IET_RELEASE: - case IET_LEVEL_CHANGED: // don't add or extend holds here; we do it in Update() break; } diff --git a/stepmania/src/ScreenEz2SelectMusic.cpp b/stepmania/src/ScreenEz2SelectMusic.cpp index 5adb7233e2..b01a94ef01 100644 --- a/stepmania/src/ScreenEz2SelectMusic.cpp +++ b/stepmania/src/ScreenEz2SelectMusic.cpp @@ -238,7 +238,7 @@ void ScreenEz2SelectMusic::Input( const InputEventPlus &input ) if(i_ErrorDetected) return; // don't let the user do anything if theres an error - if( input.type == IET_RELEASE || input.type == IET_LEVEL_CHANGED ) return; // don't care + if( input.type == IET_RELEASE ) return; // don't care if( IsTransitioning() ) return; // ignore diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 4a852d7ca9..369cfb2c98 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -2063,9 +2063,6 @@ void ScreenGameplay::Input( const InputEventPlus &input ) { //LOG->Trace( "ScreenGameplay::Input()" ); - if( input.type == IET_LEVEL_CHANGED ) - return; - if( m_bPaused ) { /* If we're paused, only accept MENU_BUTTON_START to unpause. */ diff --git a/stepmania/src/ScreenSelectMusic.cpp b/stepmania/src/ScreenSelectMusic.cpp index a086e1058e..800ee003a7 100644 --- a/stepmania/src/ScreenSelectMusic.cpp +++ b/stepmania/src/ScreenSelectMusic.cpp @@ -297,7 +297,6 @@ void ScreenSelectMusic::Input( const InputEventPlus &input ) input.MenuI.IsValid() && input.MenuI.button == MENU_BUTTON_START && input.type != IET_RELEASE && - input.type != IET_LEVEL_CHANGED && OPTIONS_MENU_AVAILABLE.GetValue() ) { if( m_bGoToOptions )