1 #ifndef MSP_INPUT_GAMECONTROLLER_H_
2 #define MSP_INPUT_GAMECONTROLLER_H_
4 #include <msp/io/eventdispatcher.h>
5 #include <msp/time/timedelta.h>
11 class GameController: public Device
16 Private *priv = nullptr;
17 IO::EventDispatcher *event_disp = nullptr;
19 static bool detect_done;
20 static unsigned n_detected_controllers;
23 GameController(unsigned);
26 static unsigned detect();
27 static bool is_available(unsigned = 0);
29 void use_event_dispatcher(IO::EventDispatcher *);
32 void tick(const Time::TimeDelta &);