Filter layer over *BeingPressed in InputFilter, to put odd special cases

without mussing up RageInput.

Disables the new joystick axes (they're only there for a USB converter
special case that I havn't added yet and will cause problems for others).
This commit is contained in:
Glenn Maynard
2002-09-08 06:10:23 +00:00
parent a0a27e7de3
commit 839d2388a2
2 changed files with 41 additions and 14 deletions
+5 -8
View File
@@ -38,15 +38,12 @@ typedef CArray<InputEvent, InputEvent> InputEventArray;
class InputFilter
{
public:
InputFilter()
{
for( int i=0; i<NUM_INPUT_DEVICES; i++ )
{
for( int j=0; j<NUM_DEVICE_BUTTONS; j++ )
m_fTimeHeld[i][j] = 0;
}
};
InputFilter();
bool BeingPressed( DeviceInput di, bool Prev = false);
bool WasBeingPressed( DeviceInput di );
bool IsBeingPressed( DeviceInput di );
void GetInputEvents( InputEventArray &array, float fDeltaTime );
float m_fTimeHeld[NUM_INPUT_DEVICES][NUM_DEVICE_BUTTONS];