diff options
author | rsn8887 | 2017-02-18 19:21:26 -0600 |
---|---|---|
committer | rsn8887 | 2017-02-18 19:22:04 -0600 |
commit | 86c6c7c9036474d2ad66994613ad3042dee8fde2 (patch) | |
tree | 0af562f1eb188796f11ae5c971a904a9d76d30be /backends/events/sdl | |
parent | c0b095d793cf2ffa71830cc7d1ebb153ac70eccb (diff) | |
download | scummvm-rg350-86c6c7c9036474d2ad66994613ad3042dee8fde2.tar.gz scummvm-rg350-86c6c7c9036474d2ad66994613ad3042dee8fde2.tar.bz2 scummvm-rg350-86c6c7c9036474d2ad66994613ad3042dee8fde2.zip |
SDL: increase resolution of slow analog pointer motion
Diffstat (limited to 'backends/events/sdl')
-rw-r--r-- | backends/events/sdl/sdl-events.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/events/sdl/sdl-events.cpp b/backends/events/sdl/sdl-events.cpp index 378e0370fb..469f1d5a44 100644 --- a/backends/events/sdl/sdl-events.cpp +++ b/backends/events/sdl/sdl-events.cpp @@ -270,8 +270,14 @@ bool SdlEventSource::handleKbdMouse(Common::Event &event) { } if (_km.x != oldKmX || _km.y != oldKmY) { + // keep hi-res coordinates since + // processMouseEvent will overwrite them with lo-res numbers + oldKmX = _km.x; + oldKmY = _km.y; event.type = Common::EVENT_MOUSEMOVE; processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER); + _km.x = oldKmX; + _km.y = oldKmY; return true; } } |