]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/gamecontroller.h
Add support for blocking ticks and EventDispatcher in GameController
[libs/gui.git] / source / input / gamecontroller.h
index 9ebacee7becbc495c28b27b30e8118804657e698..5aaa6317322e0da37325359677d42147e331f4f8 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef GAMECONTROLLER_H_
 #define GAMECONTROLLER_H_
 
+#include <msp/io/eventdispatcher.h>
+#include <msp/time/timedelta.h>
 #include "device.h"
 
 namespace Msp {
@@ -12,12 +14,16 @@ private:
        struct Private;
 
        Private *priv;
+       IO::EventDispatcher *event_disp;
 
 public:
        GameController(unsigned);
        virtual ~GameController();
 
+       void use_event_dispatcher(IO::EventDispatcher *);
+
        void tick();
+       void tick(const Time::TimeDelta &);
 };
 
 } // namespace Input