use RageTimer::Half

This commit is contained in:
Glenn Maynard
2003-07-20 19:13:35 +00:00
parent e3274ec002
commit da3be19536
@@ -10,11 +10,7 @@ void InputHandler::UpdateTimer()
void InputHandler::ButtonPressed( DeviceInput di, bool Down )
{
if( di.ts.IsZero() )
{
const RageTimer now;
const float ProbableDelay = -(now - m_LastUpdate) / 2;
di.ts = now + ProbableDelay;
}
di.ts = m_LastUpdate.Half();
INPUTFILTER->ButtonPressed( di, Down );
}