summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);