Update -> UpdateTimer
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
#include "InputFilter.h"
|
#include "InputFilter.h"
|
||||||
#include "InputHandler.h"
|
#include "InputHandler.h"
|
||||||
|
|
||||||
void InputHandler::Update(float fDeltaTime)
|
void InputHandler::UpdateTimer()
|
||||||
{
|
{
|
||||||
m_LastUpdate.Touch();
|
m_LastUpdate.Touch();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,9 +29,8 @@ class InputHandler
|
|||||||
RageTimer m_LastUpdate;
|
RageTimer m_LastUpdate;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/* It's vital that this be called at the *end* of any overloads. */
|
|
||||||
virtual void Update(float fDeltaTime);
|
|
||||||
virtual ~InputHandler() { }
|
virtual ~InputHandler() { }
|
||||||
|
virtual void Update(float fDeltaTime) { }
|
||||||
virtual void GetDevicesAndDescriptions(vector<InputDevice>& vDevicesOut, vector<CString>& vDescriptionsOut) = 0;
|
virtual void GetDevicesAndDescriptions(vector<InputDevice>& vDevicesOut, vector<CString>& vDescriptionsOut) = 0;
|
||||||
|
|
||||||
/* In Windows, some devices need to be recreated if we recreate our main window.
|
/* In Windows, some devices need to be recreated if we recreate our main window.
|
||||||
@@ -53,6 +52,9 @@ protected:
|
|||||||
*
|
*
|
||||||
* If the timestamp is set, it'll be left alone. */
|
* If the timestamp is set, it'll be left alone. */
|
||||||
void ButtonPressed( DeviceInput di, bool Down );
|
void ButtonPressed( DeviceInput di, bool Down );
|
||||||
|
|
||||||
|
/* Call this at the end of polling input. */
|
||||||
|
void UpdateTimer();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user