Invalid buttons make invalid inputs.

This commit is contained in:
Steve Checkoway
2007-01-03 05:06:28 +00:00
parent 55f5e88e0a
commit ba2778bbeb
+1 -1
View File
@@ -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;