1 #ifndef MSP_INPUT_GAMECONTROLLER_H_
2 #define MSP_INPUT_GAMECONTROLLER_H_
4 #include <msp/graphics/mspgui_api.h>
5 #include <msp/io/eventdispatcher.h>
6 #include <msp/time/timedelta.h>
12 class MSPGUI_API GameController: public Device
17 Private *priv = nullptr;
18 IO::EventDispatcher *event_disp = nullptr;
20 static bool detect_done;
21 static unsigned n_detected_controllers;
24 GameController(unsigned);
27 static unsigned detect();
28 static bool is_available(unsigned = 0);
30 void use_event_dispatcher(IO::EventDispatcher *);
33 void tick(const Time::TimeDelta &);