don't bother typedefing this

This commit is contained in:
Glenn Maynard
2006-09-07 23:58:46 +00:00
parent fb99227ff1
commit 2fa3dd658a
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -289,7 +289,7 @@ void InputFilter::ResetKeyRepeat( const DeviceInput &di )
GetButtonState( di ).m_fSecsHeld = 0; GetButtonState( di ).m_fSecsHeld = 0;
} }
void InputFilter::GetInputEvents( InputEventArray &array ) void InputFilter::GetInputEvents( vector<InputEvent> &array )
{ {
array.clear(); array.clear();
LockMut(*queuemutex); LockMut(*queuemutex);
+2 -4
View File
@@ -35,8 +35,6 @@ struct InputEvent : public DeviceInput
InputEventType type; InputEventType type;
}; };
typedef vector<InputEvent> InputEventArray;
class RageMutex; class RageMutex;
struct ButtonState; struct ButtonState;
class InputFilter class InputFilter
@@ -59,13 +57,13 @@ public:
float GetSecsHeld( const DeviceInput &di ); float GetSecsHeld( const DeviceInput &di );
RString GetButtonComment( const DeviceInput &di ) const; RString GetButtonComment( const DeviceInput &di ) const;
void GetInputEvents( InputEventArray &array ); void GetInputEvents( vector<InputEvent> &aEventOut );
void GetPressedButtons( vector<DeviceInput> &array ); void GetPressedButtons( vector<DeviceInput> &array );
private: private:
void CheckButtonChange( ButtonState &bs, DeviceInput di, const RageTimer &now ); void CheckButtonChange( ButtonState &bs, DeviceInput di, const RageTimer &now );
InputEventArray queue; vector<InputEvent> queue;
RageMutex *queuemutex; RageMutex *queuemutex;
}; };