From 1bc87e3bee97d81d2c62126554c6380c7ce2bd1a Mon Sep 17 00:00:00 2001 From: Alejandro Marzini Date: Wed, 30 Jun 2010 19:30:36 +0000 Subject: Removed static mapKey function. svn-id: r50539 --- backends/events/linuxmotosdl/linuxmotosdl-events.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'backends/events') 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) {} -- cgit v1.2.3