add ForceKey, StopForcingKey

This commit is contained in:
Glenn Maynard
2003-09-03 21:49:11 +00:00
parent d934177bf4
commit 8f3927478f
2 changed files with 77 additions and 6 deletions
+6
View File
@@ -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 );