Systems with many unbuffered joystick devices may send 50 presses

per frame.  Use a large value, so we only trigger as a diagnostic for
broken RageInputDrivers.
This commit is contained in:
Glenn Maynard
2006-03-26 01:42:37 +00:00
parent 0766c4bf25
commit f93db25802
@@ -20,7 +20,7 @@ void InputHandler::ButtonPressed( DeviceInput di, bool Down )
INPUTFILTER->ButtonPressed( di, Down ); INPUTFILTER->ButtonPressed( di, Down );
if( m_iInputsSinceUpdate >= 50 ) if( m_iInputsSinceUpdate >= 1000 )
{ {
/* /*
* We havn't received an update in a long time, so warn about it. We expect to receive * We havn't received an update in a long time, so warn about it. We expect to receive
@@ -28,12 +28,8 @@ void InputHandler::ButtonPressed( DeviceInput di, bool Down )
* m_iInputsSinceUpdate where it is, so we only warn once. Only updates that didn't provide * m_iInputsSinceUpdate where it is, so we only warn once. Only updates that didn't provide
* a timestamp are counted; if the driver provides its own timestamps, UpdateTimer is * a timestamp are counted; if the driver provides its own timestamps, UpdateTimer is
* optional. * optional.
*
* This can also happen if a device sends a lot of inputs at once; for example, a keyboard
* driver that sends every key in one frame. If that's really needed (wasteful), increase
* the threshold.
*/ */
LOG->Warn( "InputHandler::ButtonPressed: Driver sent 50 updates without calling UpdateTimer" ); LOG->Warn( "InputHandler::ButtonPressed: Driver sent many updates without calling UpdateTimer" );
FAIL_M("x"); FAIL_M("x");
} }
} }