]> git.tdb.fi Git - libs/gui.git/commitdiff
Add a generic directory for fallback implementations
authorMikko Rasa <tdb@tdb.fi>
Fri, 19 Dec 2014 01:37:31 +0000 (03:37 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 19 Dec 2014 01:54:42 +0000 (03:54 +0200)
Build
source/input/cocoa/touchscreen.cpp [deleted file]
source/input/generic/gamecontroller.cpp [new file with mode: 0644]
source/input/generic/touchscreen.cpp [new file with mode: 0644]
source/input/x11/touchscreen.cpp [deleted file]

diff --git a/Build b/Build
index 9d42217e270a02c90e6ec4f2c56292346952bcea..458b1366c59f0aa7eaf9d0f107bfacc0a9a188e3 100644 (file)
--- a/Build
+++ b/Build
@@ -152,6 +152,7 @@ package "mspgui"
                                overlay "glx";
                        };
                };
+               overlay "generic";
                install true;
                install_map
                {
diff --git a/source/input/cocoa/touchscreen.cpp b/source/input/cocoa/touchscreen.cpp
deleted file mode 100644 (file)
index bfbf7aa..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#include "touchscreen.h"
-
-namespace Msp {
-namespace Input {
-
-void Touchscreen::input_event(const Graphics::Window::Event &)
-{
-}
-
-} // namespace Input
-} // namespace Msp
diff --git a/source/input/generic/gamecontroller.cpp b/source/input/generic/gamecontroller.cpp
new file mode 100644 (file)
index 0000000..b320342
--- /dev/null
@@ -0,0 +1,23 @@
+#include <stdexcept>
+#include "gamecontroller.h"
+
+using namespace std;
+
+namespace Msp {
+namespace Input {
+
+GameController::GameController(unsigned)
+{
+       throw runtime_error("not supported");
+}
+
+GameController::~GameController()
+{
+}
+
+void GameController::tick()
+{
+}
+
+} // namespace Input
+} // namespace Msp
diff --git a/source/input/generic/touchscreen.cpp b/source/input/generic/touchscreen.cpp
new file mode 100644 (file)
index 0000000..bfbf7aa
--- /dev/null
@@ -0,0 +1,11 @@
+#include "touchscreen.h"
+
+namespace Msp {
+namespace Input {
+
+void Touchscreen::input_event(const Graphics::Window::Event &)
+{
+}
+
+} // namespace Input
+} // namespace Msp
diff --git a/source/input/x11/touchscreen.cpp b/source/input/x11/touchscreen.cpp
deleted file mode 100644 (file)
index bfbf7aa..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#include "touchscreen.h"
-
-namespace Msp {
-namespace Input {
-
-void Touchscreen::input_event(const Graphics::Window::Event &)
-{
-}
-
-} // namespace Input
-} // namespace Msp