diff options
author | Paweł Kołodziejski | 2009-11-11 13:52:03 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2009-11-11 13:52:03 +0000 |
commit | 565fcbcc8de5367c9dc2b97dd88af3b616fc1784 (patch) | |
tree | 4e04296a29a05fc09308c457d0edbfdd9a558ce7 /backends/platform/samsungtv/events.cpp | |
parent | feab5f63ffba57498cdbbcd3127a770a81903777 (diff) | |
download | scummvm-rg350-565fcbcc8de5367c9dc2b97dd88af3b616fc1784.tar.gz scummvm-rg350-565fcbcc8de5367c9dc2b97dd88af3b616fc1784.tar.bz2 scummvm-rg350-565fcbcc8de5367c9dc2b97dd88af3b616fc1784.zip |
samsungtv: remove keymapper, its pointless here. fixed key mapping
svn-id: r45829
Diffstat (limited to 'backends/platform/samsungtv/events.cpp')
-rw-r--r-- | backends/platform/samsungtv/events.cpp | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/backends/platform/samsungtv/events.cpp b/backends/platform/samsungtv/events.cpp index 3b19b41c8e..862c7e480c 100644 --- a/backends/platform/samsungtv/events.cpp +++ b/backends/platform/samsungtv/events.cpp @@ -162,14 +162,22 @@ bool OSystem_SDL_SamsungTV::remapKey(SDL_Event &ev, Common::Event &event) { event.type = Common::EVENT_LBUTTONDOWN; fillMouseEvent(event, _km.x, _km.y); return true; - } else if (ev.key.keysym.sym == SDLK_HOME) { + } else if (ev.key.keysym.sym == SDLK_F1) { event.type = Common::EVENT_RBUTTONDOWN; fillMouseEvent(event, _km.x, _km.y); return true; - } else if (ev.key.keysym.sym == SDLK_F4) { + } else if (ev.key.keysym.sym == SDLK_HOME) { + event.type = Common::EVENT_QUIT; + return true; + } else if (ev.key.keysym.sym == SDLK_F2) { + event.type = Common::EVENT_KEYDOWN; + event.kbd.keycode = Common::KEYCODE_F5; + event.kbd.ascii = Common::ASCII_F5; + return true; + } else if (ev.key.keysym.sym == SDLK_0) { event.type = Common::EVENT_KEYDOWN; - event.kbd.keycode = Common::KEYCODE_SPACE; - event.kbd.ascii = ' '; + event.kbd.keycode = Common::KEYCODE_F7; + event.kbd.ascii = Common::ASCII_F7; return true; } break; @@ -187,14 +195,22 @@ bool OSystem_SDL_SamsungTV::remapKey(SDL_Event &ev, Common::Event &event) { event.type = Common::EVENT_LBUTTONUP; fillMouseEvent(event, _km.x, _km.y); return true; - } else if (ev.key.keysym.sym == SDLK_HOME) { + } else if (ev.key.keysym.sym == SDLK_F1) { event.type = Common::EVENT_RBUTTONUP; fillMouseEvent(event, _km.x, _km.y); return true; - } else if (ev.key.keysym.sym == SDLK_F4) { + } else if (ev.key.keysym.sym == SDLK_HOME) { + event.type = Common::EVENT_QUIT; + return true; + } else if (ev.key.keysym.sym == SDLK_F2) { + event.type = Common::EVENT_KEYUP; + event.kbd.keycode = Common::KEYCODE_F5; + event.kbd.ascii = Common::ASCII_F5; + return true; + } else if (ev.key.keysym.sym == SDLK_0) { event.type = Common::EVENT_KEYUP; - event.kbd.keycode = Common::KEYCODE_SPACE; - event.kbd.ascii = ' '; + event.kbd.keycode = Common::KEYCODE_F7; + event.kbd.ascii = Common::ASCII_F7; return true; } break; |