move CodeItem into InputQueue

rename to InputQueueCode
This commit is contained in:
Glenn Maynard
2007-03-15 20:44:18 +00:00
parent ca8f64a18f
commit dc8a6ee910
6 changed files with 202 additions and 202 deletions
+18
View File
@@ -25,6 +25,24 @@ protected:
vector<InputEventPlus> m_aQueue[NUM_GameController];
};
struct InputQueueCode
{
public:
bool Load( RString sButtonsNames );
bool EnteredCode( GameController controller ) const;
private:
struct ButtonPress
{
ButtonPress() { m_bAllowIntermediatePresses = true; }
vector<GameButton> m_aButtonsToHold;
vector<GameButton> m_aButtonsToPress;
bool m_bAllowIntermediatePresses;
};
vector<ButtonPress> m_aPresses;
float fMaxSecondsBack;
};
extern InputQueue* INPUTQUEUE; // global and accessable from anywhere in our program