aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorAlejandro Marzini2010-06-30 19:30:36 +0000
committerAlejandro Marzini2010-06-30 19:30:36 +0000
commit1bc87e3bee97d81d2c62126554c6380c7ce2bd1a (patch)
treebdfc782fc831de6f0bd3ff850e7255a2efd08ab9 /backends
parentc174d5327bfaf55d998cf67f3e4f49a0eaf2ed39 (diff)
downloadscummvm-rg350-1bc87e3bee97d81d2c62126554c6380c7ce2bd1a.tar.gz
scummvm-rg350-1bc87e3bee97d81d2c62126554c6380c7ce2bd1a.tar.bz2
scummvm-rg350-1bc87e3bee97d81d2c62126554c6380c7ce2bd1a.zip
Removed static mapKey function.
svn-id: r50539
Diffstat (limited to 'backends')
-rw-r--r--backends/events/linuxmotosdl/linuxmotosdl-events.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/backends/events/linuxmotosdl/linuxmotosdl-events.cpp b/backends/events/linuxmotosdl/linuxmotosdl-events.cpp
index f27042ea5d..62667422bf 100644
--- a/backends/events/linuxmotosdl/linuxmotosdl-events.cpp
+++ b/backends/events/linuxmotosdl/linuxmotosdl-events.cpp
@@ -64,23 +64,6 @@ void LinuxmotoSdlEventManager::preprocessEvents(SDL_Event *event) {
}
}
-static int mapKey(SDLKey key, SDLMod mod, Uint16 unicode) {
- if (key >= SDLK_F1 && key <= SDLK_F9) {
- return key - SDLK_F1 + Common::ASCII_F1;
- } else if (key >= SDLK_KP0 && key <= SDLK_KP9) {
- return key - SDLK_KP0 + '0';
- } else if (key >= SDLK_UP && key <= SDLK_PAGEDOWN) {
- return key;
- } else if (unicode) {
- return unicode;
- } else if (key >= 'a' && key <= 'z' && (mod & KMOD_SHIFT)) {
- return key & ~0x20;
- } else if (key >= SDLK_NUMLOCK && key <= SDLK_EURO) {
- return 0;
- }
- return key;
-}
-
bool LinuxmotoSdlEventManager::remapKey(SDL_Event &ev, Common::Event &event) {
if (false) {}