X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fgamecontroller.h;h=863f66f3e5a338bea6d8cdb2acdcb3968f7f43b3;hb=c703f5b01bf5d7eeb13091e64109b58f5d12f53c;hp=5aaa6317322e0da37325359677d42147e331f4f8;hpb=97ea3f88027c577811bcd9717ad506f254d393f5;p=libs%2Fgui.git diff --git a/source/input/gamecontroller.h b/source/input/gamecontroller.h index 5aaa631..863f66f 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 @@ -16,10 +16,16 @@ private: Private *priv; IO::EventDispatcher *event_disp; + static bool detect_done; + static unsigned n_detected_controllers; + public: GameController(unsigned); virtual ~GameController(); + static unsigned detect(); + static bool is_available(unsigned = 0); + void use_event_dispatcher(IO::EventDispatcher *); void tick();