summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-19 02:20:15 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-19 02:20:15 +0300
commit241524f32722abe6732ce1c04feeb62cfaa3e363 (patch)
treea7964aa569da8a1d65264edfb0ea782ad5e72336 /src
parent0661b6f414ad8aa56f0a2a0d62400e008d90baa6 (diff)
downloadmv-241524f32722abe6732ce1c04feeb62cfaa3e363.tar.gz
mv-241524f32722abe6732ce1c04feeb62cfaa3e363.tar.bz2
mv-241524f32722abe6732ce1c04feeb62cfaa3e363.tar.xz
mv-241524f32722abe6732ce1c04feeb62cfaa3e363.zip
Fix moving mouse in onscreen controls under android.
Diffstat (limited to 'src')
-rw-r--r--src/gui/sdlinput.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp
index 32aff02c9..d6b067cc2 100644
--- a/src/gui/sdlinput.cpp
+++ b/src/gui/sdlinput.cpp
@@ -197,10 +197,10 @@ void SDLInput::pushInput(const SDL_Event &event)
break;
case SDL_MOUSEMOTION:
- mouseInput.setX(event.button.x);
- mouseInput.setY(event.button.y);
+ mouseInput.setX(event.motion.x);
+ mouseInput.setY(event.motion.y);
#ifdef ANDROID
- mouseInput.setReal(event.button.realx, event.button.realy);
+ mouseInput.setReal(event.motion.realx, event.motion.realy);
#endif
mouseInput.setButton(gcn::MouseInput::EMPTY);
mouseInput.setType(gcn::MouseInput::MOVED);