samsungtv: remap keycode, main tv software tell with SDLK_POWER to imediately quit sdl app

svn-id: r45939
This commit is contained in:
Paweł Kołodziejski 2009-11-16 21:13:21 +00:00
parent 4d8ae559ed
commit 09cdfac8c4

View File

@ -166,7 +166,7 @@ bool OSystem_SDL_SamsungTV::remapKey(SDL_Event &ev, Common::Event &event) {
event.type = Common::EVENT_RBUTTONDOWN;
fillMouseEvent(event, _km.x, _km.y);
return true;
} else if (ev.key.keysym.sym == SDLK_HOME) {
} else if (ev.key.keysym.sym == SDLK_POWER) {
event.type = Common::EVENT_QUIT;
return true;
} else if (ev.key.keysym.sym == SDLK_F2) {
@ -199,7 +199,7 @@ bool OSystem_SDL_SamsungTV::remapKey(SDL_Event &ev, Common::Event &event) {
event.type = Common::EVENT_RBUTTONUP;
fillMouseEvent(event, _km.x, _km.y);
return true;
} else if (ev.key.keysym.sym == SDLK_HOME) {
} else if (ev.key.keysym.sym == SDLK_POWER) {
event.type = Common::EVENT_QUIT;
return true;
} else if (ev.key.keysym.sym == SDLK_F2) {