2003-07-13 01:00:55 +00:00
|
|
|
#include "global.h"
|
|
|
|
|
#include "InputFilter.h"
|
|
|
|
|
#include "InputHandler.h"
|
|
|
|
|
|
2003-07-14 06:25:14 +00:00
|
|
|
void InputHandler::UpdateTimer()
|
2003-07-13 01:00:55 +00:00
|
|
|
{
|
|
|
|
|
m_LastUpdate.Touch();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
INPUTFILTER->ButtonPressed( di, Down );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2003 by the person(s) listed below. All rights reserved.
|
|
|
|
|
* Glenn Maynard
|
|
|
|
|
*/
|