X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Finput%2Fgamecontroller.h;h=baf94cb6c9e437f05422636787111c2b1d57d985;hb=3c5bbaeadb33d288c0f9e487b52904b7ed7e4319;hp=84c50b51c377cd7105947f8109cdfb25d982b155;hpb=0c815f73032aa6006647aff94b5498ac9d1e859b;p=libs%2Fgui.git diff --git a/source/input/gamecontroller.h b/source/input/gamecontroller.h index 84c50b5..baf94cb 100644 --- a/source/input/gamecontroller.h +++ b/source/input/gamecontroller.h @@ -13,12 +13,18 @@ class GameController: public Device 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 *);