diff options
author | Paweł Kołodziejski | 2009-11-10 19:51:40 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2009-11-10 19:51:40 +0000 |
commit | c25739b839c51d7116db1c5e454e5b6148a46786 (patch) | |
tree | 2873f592aef17980c821a7cf1c61619d0ad38356 /backends/platform/samsungtv/events.cpp | |
parent | 92bd012b55a2918c43b16026ad9c87f5b5852757 (diff) | |
download | scummvm-rg350-c25739b839c51d7116db1c5e454e5b6148a46786.tar.gz scummvm-rg350-c25739b839c51d7116db1c5e454e5b6148a46786.tar.bz2 scummvm-rg350-c25739b839c51d7116db1c5e454e5b6148a46786.zip |
properly fixed mouse positioning in game engine
svn-id: r45810
Diffstat (limited to 'backends/platform/samsungtv/events.cpp')
-rw-r--r-- | backends/platform/samsungtv/events.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/backends/platform/samsungtv/events.cpp b/backends/platform/samsungtv/events.cpp index 1363fa3f19..3b19b41c8e 100644 --- a/backends/platform/samsungtv/events.cpp +++ b/backends/platform/samsungtv/events.cpp @@ -29,6 +29,15 @@ #if defined(SAMSUNGTV) +void OSystem_SDL_SamsungTV::generateMouseMoveEvent(int x, int y) { + SDL_Event event; + memset(&event, 0, sizeof(event)); + event.type = SDL_MOUSEMOTION; + event.motion.x = x; + event.motion.y = y; + SDL_PushEvent(&event); +} + void OSystem_SDL_SamsungTV::handleKbdMouse() { uint32 curTime = getMillis(); if (curTime >= _km.last_time + _km.delay_time) { @@ -93,7 +102,7 @@ void OSystem_SDL_SamsungTV::handleKbdMouse() { _km.y_down_count = 1; } - setMousePos(_km.x, _km.y); + generateMouseMoveEvent(_km.x, _km.y); } } } |