aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/samsungtv/events.cpp
diff options
context:
space:
mode:
authorAlejandro Marzini2010-06-25 05:02:40 +0000
committerAlejandro Marzini2010-06-25 05:02:40 +0000
commitd04a2a266dff688cc88931b4e11432ae8f4a7130 (patch)
tree29915d8c641c80afc4e5848584b7c1ee93855c00 /backends/platform/samsungtv/events.cpp
parent96b9c3aa08d47bd0e6714b201ed5ac561633b9f7 (diff)
downloadscummvm-rg350-d04a2a266dff688cc88931b4e11432ae8f4a7130.tar.gz
scummvm-rg350-d04a2a266dff688cc88931b4e11432ae8f4a7130.tar.bz2
scummvm-rg350-d04a2a266dff688cc88931b4e11432ae8f4a7130.zip
Modularized Samsung TV port.
svn-id: r50258
Diffstat (limited to 'backends/platform/samsungtv/events.cpp')
-rw-r--r--backends/platform/samsungtv/events.cpp73
1 files changed, 0 insertions, 73 deletions
diff --git a/backends/platform/samsungtv/events.cpp b/backends/platform/samsungtv/events.cpp
deleted file mode 100644
index af39e67fe5..0000000000
--- a/backends/platform/samsungtv/events.cpp
+++ /dev/null
@@ -1,73 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
-
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
-
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * $URL$
- * $Id$
- *
- */
-
-#include "backends/platform/samsungtv/samsungtv.h"
-#include "common/util.h"
-#include "common/events.h"
-
-#if defined(SAMSUNGTV)
-
-bool OSystem_SDL_SamsungTV::remapKey(SDL_Event &ev, Common::Event &event) {
- switch (ev.type) {
- case SDL_KEYDOWN:{
- if (ev.key.keysym.sym == SDLK_POWER) {
- event.type = Common::EVENT_QUIT;
- return true;
- } else if (ev.key.keysym.sym == SDLK_F1 && ev.key.keysym.scancode == 20) {
- 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_F2 && ev.key.keysym.scancode == 21) {
- event.type = Common::EVENT_KEYDOWN;
- event.kbd.keycode = Common::KEYCODE_F7;
- event.kbd.ascii = Common::ASCII_F7;
- return true;
- }
- break;
- }
- case SDL_KEYUP: {
- if (ev.key.keysym.sym == SDLK_POWER) {
- event.type = Common::EVENT_QUIT;
- return true;
- } else if (ev.key.keysym.sym == SDLK_F1 && ev.key.keysym.scancode == 20) {
- 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_F2 && ev.key.keysym.scancode == 21) {
- event.type = Common::EVENT_KEYUP;
- event.kbd.keycode = Common::KEYCODE_F7;
- event.kbd.ascii = Common::ASCII_F7;
- return true;
- }
- break;
- }
- }
-
- return false;
-}
-
-#endif