From: Mikko Rasa Date: Fri, 19 Dec 2014 01:37:31 +0000 (+0200) Subject: Add a generic directory for fallback implementations X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=c3b9df7cf0a4ea3b97cacc1802d245fee133ed7a;p=libs%2Fgui.git Add a generic directory for fallback implementations --- 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/cocoa/touchscreen.cpp b/source/input/cocoa/touchscreen.cpp deleted file mode 100644 index bfbf7aa..0000000 --- a/source/input/cocoa/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 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/generic/touchscreen.cpp b/source/input/generic/touchscreen.cpp new file mode 100644 index 0000000..bfbf7aa --- /dev/null +++ b/source/input/generic/touchscreen.cpp @@ -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 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