don't bother typedefing this
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user