]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/event_mgr.hxx
Some Linux platforms need <cstdio> for snprintf.
[simgear.git] / simgear / structure / event_mgr.hxx
index 682964d27e98e251acf5d767068ba6974e4bb48a..699522b8082ef5ba3d5c3c9743ed15b0cfd68a03 100644 (file)
@@ -25,6 +25,7 @@ public:
     SGTimerQueue(int preSize=1);
     ~SGTimerQueue();
 
+    void clear();
     void update(double deltaSecs);
 
     double now() { return _now; }
@@ -71,9 +72,10 @@ public:
     SGEventMgr();
     ~SGEventMgr();
 
-    virtual void init() {}
+    virtual void init();
     virtual void update(double delta_time_sec);
     virtual void unbind();
+    virtual void shutdown();
     
     void setRealtimeProperty(SGPropertyNode* node) { _rtProp = node; }
 
@@ -128,6 +130,7 @@ private:
     SGPropertyNode_ptr _rtProp;
     SGTimerQueue _rtQueue; 
     SGTimerQueue _simQueue;
+    bool _inited;
 };
 
 #endif // _SG_EVENT_MGR_HXX