]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/gamecontroller.h
Add a game controller input device
[libs/gui.git] / source / input / gamecontroller.h
diff --git a/source/input/gamecontroller.h b/source/input/gamecontroller.h
new file mode 100644 (file)
index 0000000..9ebacee
--- /dev/null
@@ -0,0 +1,26 @@
+#ifndef GAMECONTROLLER_H_
+#define GAMECONTROLLER_H_
+
+#include "device.h"
+
+namespace Msp {
+namespace Input {
+
+class GameController: public Device
+{
+private:
+       struct Private;
+
+       Private *priv;
+
+public:
+       GameController(unsigned);
+       virtual ~GameController();
+
+       void tick();
+};
+
+} // namespace Input
+} // namespace Msp
+
+#endif