diff options
author | Alejandro Marzini | 2010-06-30 19:30:36 +0000 |
---|---|---|
committer | Alejandro Marzini | 2010-06-30 19:30:36 +0000 |
commit | 1bc87e3bee97d81d2c62126554c6380c7ce2bd1a (patch) | |
tree | bdfc782fc831de6f0bd3ff850e7255a2efd08ab9 | |
parent | c174d5327bfaf55d998cf67f3e4f49a0eaf2ed39 (diff) | |
download | scummvm-rg350-1bc87e3bee97d81d2c62126554c6380c7ce2bd1a.tar.gz scummvm-rg350-1bc87e3bee97d81d2c62126554c6380c7ce2bd1a.tar.bz2 scummvm-rg350-1bc87e3bee97d81d2c62126554c6380c7ce2bd1a.zip |
Removed static mapKey function.
svn-id: r50539
-rw-r--r-- | backends/events/linuxmotosdl/linuxmotosdl-events.cpp | 17 |
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) {} |