diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-03 00:00:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-03 00:00:28 +0300 |
commit | e9301ddce5a6ddf77dafc1f56f0b1461b2092c6f (patch) | |
tree | c9a1ed0ef0d9b15a1b3d617f9a17999bed768ff7 /src/gui/sdlinput.h | |
parent | 0b228c1ed05177a761dce44df31f087c0313dc64 (diff) | |
download | mv-e9301ddce5a6ddf77dafc1f56f0b1461b2092c6f.tar.gz mv-e9301ddce5a6ddf77dafc1f56f0b1461b2092c6f.tar.bz2 mv-e9301ddce5a6ddf77dafc1f56f0b1461b2092c6f.tar.xz mv-e9301ddce5a6ddf77dafc1f56f0b1461b2092c6f.zip |
Add support for relative mouse move in android version.
Diffstat (limited to 'src/gui/sdlinput.h')
-rw-r--r-- | src/gui/sdlinput.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/sdlinput.h b/src/gui/sdlinput.h index c3b0d14e7..dc12789b2 100644 --- a/src/gui/sdlinput.h +++ b/src/gui/sdlinput.h @@ -70,6 +70,7 @@ #include <queue> class KeyInput; +class MouseInput; namespace Key { @@ -168,6 +169,8 @@ public: virtual gcn::MouseInput dequeueMouseInput() A_WARN_UNUSED; + virtual MouseInput dequeueMouseInput2() A_WARN_UNUSED; + protected: /** * Converts a mouse button from SDL to a Guichan mouse button @@ -188,7 +191,7 @@ protected: static int convertKeyCharacter(const SDL_Event &event) A_WARN_UNUSED; std::queue<KeyInput> mKeyInputQueue; - std::queue<gcn::MouseInput> mMouseInputQueue; + std::queue<MouseInput> mMouseInputQueue; bool mMouseDown; bool mMouseInWindow; |