diff options
author | rsn8887 | 2017-03-01 09:55:20 -0600 |
---|---|---|
committer | rsn8887 | 2017-03-01 09:55:20 -0600 |
commit | 12e226922d3f62ab55bd921f712a0be8f04497c0 (patch) | |
tree | 88ffebc89991f7edc8b16cab21d35c9ad35d6591 /backends/events/openpandora | |
parent | 7898c904ba978254b6c99124e5c83fa6b0d77d23 (diff) | |
download | scummvm-rg350-12e226922d3f62ab55bd921f712a0be8f04497c0.tar.gz scummvm-rg350-12e226922d3f62ab55bd921f712a0be8f04497c0.tar.bz2 scummvm-rg350-12e226922d3f62ab55bd921f712a0be8f04497c0.zip |
SDL: Always use sub-pixel joystick pointer resolution
Diffstat (limited to 'backends/events/openpandora')
-rw-r--r-- | backends/events/openpandora/op-events.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/events/openpandora/op-events.cpp b/backends/events/openpandora/op-events.cpp index abb1458d66..80fff20bc2 100644 --- a/backends/events/openpandora/op-events.cpp +++ b/backends/events/openpandora/op-events.cpp @@ -84,6 +84,9 @@ bool OPEventSource::handleMouseButtonDown(SDL_Event &ev, Common::Event &event) { return false; processMouseEvent(event, ev.button.x, ev.button.y); + // update KbdMouse + _km.x = ev.button.x * MULTIPLIER; + _km.y = ev.button.y * MULTIPLIER; return true; } @@ -112,6 +115,9 @@ bool OPEventSource::handleMouseButtonUp(SDL_Event &ev, Common::Event &event) { return false; processMouseEvent(event, ev.button.x, ev.button.y); + // update KbdMouse + _km.x = ev.button.x * MULTIPLIER; + _km.y = ev.button.y * MULTIPLIER; return true; } |