]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/gamecontroller.h
Use the override specifier where appropriate
[libs/gui.git] / source / input / gamecontroller.h
index 5aaa6317322e0da37325359677d42147e331f4f8..19f98d5c0c075085e41171d9bbb354476916e701 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef GAMECONTROLLER_H_
-#define GAMECONTROLLER_H_
+#ifndef MSP_INPUT_GAMECONTROLLER_H_
+#define MSP_INPUT_GAMECONTROLLER_H_
 
 #include <msp/io/eventdispatcher.h>
 #include <msp/time/timedelta.h>
@@ -16,9 +16,15 @@ private:
        Private *priv;
        IO::EventDispatcher *event_disp;
 
+       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 *);