This commit is contained in:
Glenn Maynard
2005-11-06 15:24:26 +00:00
parent b691117e2c
commit 95b71dbd3b
+2 -1
View File
@@ -22,6 +22,7 @@ namespace
g_ButtonsToProcess.insert( make_pair(di.device, di.button) );
}
}
/*
* Some input devices require debouncing. Do this on both press and release. After
* reporting a change in state, don't report another for the debounce period. If a
@@ -150,7 +151,7 @@ void InputFilter::CheckButtonChange( ButtonState &bs, DeviceInput di, const Rage
return;
/* If the last IET_FIRST_PRESS or IET_RELEASE event was sent too recently,
* wait a while before sending it. */
* wait a while before sending it. */
if( now - bs.m_LastReportTime < g_fInputDebounceTime )
return;