This commit is contained in:
Glenn Maynard
2006-09-13 03:04:04 +00:00
parent 8c7c7fa265
commit 9fb0d09f35
+3 -3
View File
@@ -249,8 +249,9 @@ void InputFilter::Update( float fDeltaTime )
bs.m_fSecsHeld += fDeltaTime; bs.m_fSecsHeld += fDeltaTime;
const float fNewHoldTime = bs.m_fSecsHeld; const float fNewHoldTime = bs.m_fSecsHeld;
if( fNewHoldTime > g_fTimeBeforeRepeats ) if( fNewHoldTime <= g_fTimeBeforeRepeats )
{ continue;
float fRepeatTime; float fRepeatTime;
if( fOldHoldTime < g_fTimeBeforeRepeats ) if( fOldHoldTime < g_fTimeBeforeRepeats )
{ {
@@ -272,7 +273,6 @@ void InputFilter::Update( float fDeltaTime )
ReportButtonChange( di, IET_REPEAT ); ReportButtonChange( di, IET_REPEAT );
} }
}
FOREACH( ButtonStateMap::iterator, ButtonsToErase, it ) FOREACH( ButtonStateMap::iterator, ButtonsToErase, it )
g_ButtonStates.erase( *it ); g_ButtonStates.erase( *it );