diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-19 02:20:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-19 02:20:15 +0300 |
commit | 241524f32722abe6732ce1c04feeb62cfaa3e363 (patch) | |
tree | a7964aa569da8a1d65264edfb0ea782ad5e72336 /src/gui | |
parent | 0661b6f414ad8aa56f0a2a0d62400e008d90baa6 (diff) | |
download | mv-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/gui')
-rw-r--r-- | src/gui/sdlinput.cpp | 6 |
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); |