warn if InputHandler::UpdateTimer is not being called

This commit is contained in:
Glenn Maynard
2005-05-17 20:54:58 +00:00
parent e1429256f3
commit 8979ac38e6
2 changed files with 27 additions and 2 deletions
@@ -24,9 +24,8 @@
class InputHandler
{
RageTimer m_LastUpdate;
public:
InputHandler() { m_iInputsSinceUpdate = 0; }
virtual ~InputHandler() { }
virtual void Update(float fDeltaTime) { }
virtual void GetDevicesAndDescriptions(vector<InputDevice>& vDevicesOut, vector<CString>& vDescriptionsOut) = 0;
@@ -53,6 +52,10 @@ protected:
/* Call this at the end of polling input. */
void UpdateTimer();
private:
RageTimer m_LastUpdate;
int m_iInputsSinceUpdate;
};
#endif