From ba2778bbeb95805d8f7bf4177f7badcd41b6a888 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Wed, 3 Jan 2007 05:06:28 +0000 Subject: [PATCH] Invalid buttons make invalid inputs. --- stepmania/src/GameInput.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/GameInput.h b/stepmania/src/GameInput.h index 7938998c4d..83f1fd376f 100644 --- a/stepmania/src/GameInput.h +++ b/stepmania/src/GameInput.h @@ -265,7 +265,7 @@ struct GameInput return button < other.button; } - inline bool IsValid() const { return controller != GameController_Invalid; }; + inline bool IsValid() const { return controller != GameController_Invalid && button != GameButton_Invalid; }; inline void MakeInvalid() { controller = GameController_Invalid; button = GameButton_Invalid; }; RString ToString( const InputScheme* pInputs ) const;