]> git.tdb.fi Git - libs/gui.git/blob - source/input/gamecontroller.h
Add support for blocking ticks and EventDispatcher in GameController
[libs/gui.git] / source / input / gamecontroller.h
1 #ifndef GAMECONTROLLER_H_
2 #define GAMECONTROLLER_H_
3
4 #include <msp/io/eventdispatcher.h>
5 #include <msp/time/timedelta.h>
6 #include "device.h"
7
8 namespace Msp {
9 namespace Input {
10
11 class GameController: public Device
12 {
13 private:
14         struct Private;
15
16         Private *priv;
17         IO::EventDispatcher *event_disp;
18
19 public:
20         GameController(unsigned);
21         virtual ~GameController();
22
23         void use_event_dispatcher(IO::EventDispatcher *);
24
25         void tick();
26         void tick(const Time::TimeDelta &);
27 };
28
29 } // namespace Input
30 } // namespace Msp
31
32 #endif