add ForceKey, StopForcingKey
This commit is contained in:
@@ -39,11 +39,17 @@ class RageMutex;
|
||||
class InputFilter
|
||||
{
|
||||
bool m_BeingHeld[NUM_INPUT_DEVICES][NUM_DEVICE_BUTTONS];
|
||||
bool m_BeingForced[NUM_INPUT_DEVICES][NUM_DEVICE_BUTTONS];
|
||||
float m_fSecsHeld[NUM_INPUT_DEVICES][NUM_DEVICE_BUTTONS];
|
||||
|
||||
/* If > 0, then when it reaches 0, stop forcing. */
|
||||
float m_fSecsToForce[NUM_INPUT_DEVICES][NUM_DEVICE_BUTTONS];
|
||||
InputEventArray queue;
|
||||
RageMutex *queuemutex;
|
||||
|
||||
void ForceKey( DeviceInput di, float duration );
|
||||
void StopForcingKey( DeviceInput di );
|
||||
|
||||
public:
|
||||
void ButtonPressed( DeviceInput di, bool Down );
|
||||
void ResetDevice( InputDevice dev );
|
||||
|
||||
Reference in New Issue
Block a user