summaryrefslogtreecommitdiff
path: root/src/gui/sdlinput.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-03 00:00:28 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-03 00:00:28 +0300
commite9301ddce5a6ddf77dafc1f56f0b1461b2092c6f (patch)
treec9a1ed0ef0d9b15a1b3d617f9a17999bed768ff7 /src/gui/sdlinput.h
parent0b228c1ed05177a761dce44df31f087c0313dc64 (diff)
downloadmanaverse-e9301ddce5a6ddf77dafc1f56f0b1461b2092c6f.tar.gz
manaverse-e9301ddce5a6ddf77dafc1f56f0b1461b2092c6f.tar.bz2
manaverse-e9301ddce5a6ddf77dafc1f56f0b1461b2092c6f.tar.xz
manaverse-e9301ddce5a6ddf77dafc1f56f0b1461b2092c6f.zip
Add support for relative mouse move in android version.
Diffstat (limited to 'src/gui/sdlinput.h')
-rw-r--r--src/gui/sdlinput.h5
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;