private:
struct Private;
- Private *priv;
- IO::EventDispatcher *event_disp;
+ Private *priv = nullptr;
+ IO::EventDispatcher *event_disp = nullptr;
+
+ static bool detect_done;
+ static unsigned n_detected_controllers;
public:
GameController(unsigned);
- virtual ~GameController();
+ ~GameController();
+
+ static unsigned detect();
+ static bool is_available(unsigned = 0);
void use_event_dispatcher(IO::EventDispatcher *);