diff options
author | Paweł Kołodziejski | 2009-11-10 19:15:30 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2009-11-10 19:15:30 +0000 |
commit | bbd8c302a3e624f23bb0dd2d81a7b32ecbe7435e (patch) | |
tree | 332bec4160d67b359332cbd03ffdda1cb0182f01 /backends/platform/samsungtv/events.cpp | |
parent | 2bb14776e4b0e8fcdbbe10668103833d33c61db2 (diff) | |
download | scummvm-rg350-bbd8c302a3e624f23bb0dd2d81a7b32ecbe7435e.tar.gz scummvm-rg350-bbd8c302a3e624f23bb0dd2d81a7b32ecbe7435e.tar.bz2 scummvm-rg350-bbd8c302a3e624f23bb0dd2d81a7b32ecbe7435e.zip |
fix warpMouse(), add missing setMousePos on cursor events
svn-id: r45808
Diffstat (limited to 'backends/platform/samsungtv/events.cpp')
-rw-r--r-- | backends/platform/samsungtv/events.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/platform/samsungtv/events.cpp b/backends/platform/samsungtv/events.cpp index f477f9c4d2..385b16b6c9 100644 --- a/backends/platform/samsungtv/events.cpp +++ b/backends/platform/samsungtv/events.cpp @@ -124,24 +124,28 @@ bool OSystem_SDL_SamsungTV::remapKey(SDL_Event &ev, Common::Event &event) { _km.y_down_count = 1; event.type = Common::EVENT_MOUSEMOVE; fillMouseEvent(event, _km.x, _km.y); + setMousePos(event.mouse.x, event.mouse.y); return true; } else if (ev.key.keysym.sym == SDLK_DOWN) { _km.y_vel = 1; _km.y_down_count = 1; event.type = Common::EVENT_MOUSEMOVE; fillMouseEvent(event, _km.x, _km.y); + setMousePos(event.mouse.x, event.mouse.y); return true; } else if (ev.key.keysym.sym == SDLK_LEFT) { _km.x_vel = -1; _km.x_down_count = 1; event.type = Common::EVENT_MOUSEMOVE; fillMouseEvent(event, _km.x, _km.y); + setMousePos(event.mouse.x, event.mouse.y); return true; } else if (ev.key.keysym.sym == SDLK_RIGHT) { _km.x_vel = 1; _km.x_down_count = 1; event.type = Common::EVENT_MOUSEMOVE; fillMouseEvent(event, _km.x, _km.y); + setMousePos(event.mouse.x, event.mouse.y); return true; } else if (ev.key.keysym.sym == SDLK_z) { event.type = Common::EVENT_LBUTTONDOWN; |