From c3b9df7cf0a4ea3b97cacc1802d245fee133ed7a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 19 Dec 2014 03:37:31 +0200 Subject: [PATCH] Add a generic directory for fallback implementations --- Build | 1 + source/input/generic/gamecontroller.cpp | 23 +++++++++++++++++++ .../input/{cocoa => generic}/touchscreen.cpp | 0 source/input/x11/touchscreen.cpp | 11 --------- 4 files changed, 24 insertions(+), 11 deletions(-) create mode 100644 source/input/generic/gamecontroller.cpp rename source/input/{cocoa => generic}/touchscreen.cpp (100%) delete mode 100644 source/input/x11/touchscreen.cpp diff --git a/Build b/Build index 9d42217..458b136 100644 --- a/Build +++ b/Build @@ -152,6 +152,7 @@ package "mspgui" overlay "glx"; }; }; + overlay "generic"; install true; install_map { diff --git a/source/input/generic/gamecontroller.cpp b/source/input/generic/gamecontroller.cpp new file mode 100644 index 0000000..b320342 --- /dev/null +++ b/source/input/generic/gamecontroller.cpp @@ -0,0 +1,23 @@ +#include +#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/cocoa/touchscreen.cpp b/source/input/generic/touchscreen.cpp similarity index 100% rename from source/input/cocoa/touchscreen.cpp rename to source/input/generic/touchscreen.cpp diff --git a/source/input/x11/touchscreen.cpp b/source/input/x11/touchscreen.cpp deleted file mode 100644 index bfbf7aa..0000000 --- a/source/input/x11/touchscreen.cpp +++ /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 -- 2.43.0