diff options
author | rsn8887 | 2017-02-16 03:19:59 -0600 |
---|---|---|
committer | rsn8887 | 2017-02-17 17:55:09 -0600 |
commit | 613c6f4f7f3a64f857ca59e453b5e53d01e64899 (patch) | |
tree | b43962e434d4d657e5e0140110b49b5c09ded421 /backends/events/wincesdl | |
parent | c0d155db972323b87af0964f59676be091c76be6 (diff) | |
download | scummvm-rg350-613c6f4f7f3a64f857ca59e453b5e53d01e64899.tar.gz scummvm-rg350-613c6f4f7f3a64f857ca59e453b5e53d01e64899.tar.bz2 scummvm-rg350-613c6f4f7f3a64f857ca59e453b5e53d01e64899.zip |
SDL: More fixes to jerky analog joystick pointer
For some engines such as Dreamweb that a previous fix did not apply
to, this fixes bug 6996: Android: Mouse pointer control with
analog joystick is unusable
Diffstat (limited to 'backends/events/wincesdl')
-rw-r--r-- | backends/events/wincesdl/wincesdl-events.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/backends/events/wincesdl/wincesdl-events.cpp b/backends/events/wincesdl/wincesdl-events.cpp index 2fcd79490c..f37ee71702 100644 --- a/backends/events/wincesdl/wincesdl-events.cpp +++ b/backends/events/wincesdl/wincesdl-events.cpp @@ -48,8 +48,8 @@ void WINCESdlEventSource::processMouseEvent(Common::Event &event, int x, int y) event.mouse.y = y; // Update the "keyboard mouse" coords - _km.x = event.mouse.x; - _km.y = event.mouse.y; + _km.x = event.mouse.x * _km.multiplier; + _km.y = event.mouse.y * _km.multiplier; // Adjust for the screen scaling if (_graphicsMan->_zoomDown) @@ -69,7 +69,9 @@ bool WINCESdlEventSource::pollEvent(Common::Event &event) { memset(&event, 0, sizeof(Common::Event)); - handleKbdMouse(event); + if (handleKbdMouse(event) { + return true; + } // If the screen changed, send an Common::EVENT_SCREEN_CHANGED int screenID = _graphicsMan->getScreenChangeID(); |