X-Git-Url: http://git.tdb.fi/?p=libs%2Fgui.git;a=blobdiff_plain;f=source%2Finput%2Fgamecontroller.h;h=863f66f3e5a338bea6d8cdb2acdcb3968f7f43b3;hp=84c50b51c377cd7105947f8109cdfb25d982b155;hb=7262f1e7e9ea88a021c14de9dc06ebe76112afd7;hpb=0c815f73032aa6006647aff94b5498ac9d1e859b diff --git a/source/input/gamecontroller.h b/source/input/gamecontroller.h index 84c50b5..863f66f 100644 --- a/source/input/gamecontroller.h +++ b/source/input/gamecontroller.h @@ -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();