diff options
Diffstat (limited to 'backends/events/wincesdl/wincesdl-events.cpp')
-rw-r--r-- | backends/events/wincesdl/wincesdl-events.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/backends/events/wincesdl/wincesdl-events.cpp b/backends/events/wincesdl/wincesdl-events.cpp index 7001d5fec6..c949d1c41c 100644 --- a/backends/events/wincesdl/wincesdl-events.cpp +++ b/backends/events/wincesdl/wincesdl-events.cpp @@ -156,6 +156,10 @@ bool WINCESdlEventSource::pollEvent(Common::Event &event) { case SDL_MOUSEMOTION: event.type = Common::EVENT_MOUSEMOVE; processMouseEvent(event, ev.motion.x, ev.motion.y); + // update KbdMouse + _km.x = ev.motion.x * MULTIPLIER; + _km.y = ev.motion.y * MULTIPLIER; + _graphicsMan->setMousePos(event.mouse.x, event.mouse.y); return true; @@ -168,7 +172,9 @@ bool WINCESdlEventSource::pollEvent(Common::Event &event) { else break; processMouseEvent(event, ev.button.x, ev.button.y); - + // update KbdMouse + _km.x = ev.button.x * MULTIPLIER; + _km.y = ev.button.y * MULTIPLIER; if (event.mouse.x > _tapX) deltaX = event.mouse.x - _tapX; @@ -244,6 +250,9 @@ bool WINCESdlEventSource::pollEvent(Common::Event &event) { } processMouseEvent(event, ev.button.x, ev.button.y); + // update KbdMouse + _km.x = ev.button.x * MULTIPLIER; + _km.y = ev.button.y * MULTIPLIER; if (freeLookActive && !_closeClick) { _tapX = event.mouse.x; |