X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fgamecontroller.h;h=6393ac09358a6b297cc2f0b261e5c94dccd8a5cd;hb=294c354ae3b1f26887c37f866f082e52c08d80f1;hp=5aaa6317322e0da37325359677d42147e331f4f8;hpb=97ea3f88027c577811bcd9717ad506f254d393f5;p=libs%2Fgui.git diff --git a/source/input/gamecontroller.h b/source/input/gamecontroller.h index 5aaa631..6393ac0 100644 --- a/source/input/gamecontroller.h +++ b/source/input/gamecontroller.h @@ -1,5 +1,5 @@ -#ifndef GAMECONTROLLER_H_ -#define GAMECONTROLLER_H_ +#ifndef MSP_INPUT_GAMECONTROLLER_H_ +#define MSP_INPUT_GAMECONTROLLER_H_ #include #include @@ -13,12 +13,18 @@ class GameController: public Device private: struct Private; - Private *priv; - IO::EventDispatcher *event_disp; + Private *priv = 0; + IO::EventDispatcher *event_disp = 0; + + 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 *);