split InputQueue::WasPressedRecently from AllWerePressedRecently.

This simplifies AllWerePressedRecently, and makes the input state
at the time of the press available.
This commit is contained in:
Glenn Maynard
2006-09-08 04:18:01 +00:00
parent a2923556c9
commit 4b26951f0a
2 changed files with 24 additions and 14 deletions
+2
View File
@@ -9,6 +9,7 @@
const unsigned MAX_INPUT_QUEUE_LENGTH = 16;
class InputEventPlus;
class RageTimer;
class InputQueue
{
@@ -18,6 +19,7 @@ public:
void RememberInput( const InputEventPlus &gi );
bool MatchesSequence( GameController c, const GameButton* button_sequence, int iNumButtons, float fMaxSecondsBack );
bool MatchesSequence( GameController c, const MenuButton* button_sequence, int iNumButtons, float fMaxSecondsBack );
bool WasPressedRecently( GameController c, const GameButton button, const RageTimer &OldestTimeAllowed, InputEventPlus *pIEP = NULL );
bool AllWerePressedRecently( GameController c, const GameButton* buttons, int iNumButtons, float fMaxSecondsBack );
protected: