From beed05b0affcab40d4b54576bd264c8be799c2b6 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 28 Nov 2010 17:43:10 +0000 Subject: [PATCH] DINGUX: Correct compilation fix (I hope), remove dead code svn-id: r54539 --- .../events/dinguxsdl/dinguxsdl-events.cpp | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/backends/events/dinguxsdl/dinguxsdl-events.cpp b/backends/events/dinguxsdl/dinguxsdl-events.cpp index 2def40b2092..03e1663ca8b 100644 --- a/backends/events/dinguxsdl/dinguxsdl-events.cpp +++ b/backends/events/dinguxsdl/dinguxsdl-events.cpp @@ -25,11 +25,11 @@ #if defined(DINGUX) -#include "backends/events/dinguxsdl/dinguxsdl-events.h" - // Disable symbol overrides so that we can use system headers. #define FORBIDDEN_SYMBOL_EXCEPTION_FILE +#include "backends/events/dinguxsdl/dinguxsdl-events.h" + #define PAD_UP SDLK_UP #define PAD_DOWN SDLK_DOWN #define PAD_LEFT SDLK_LEFT @@ -43,23 +43,6 @@ #define TRIG_L SDLK_TAB #define TRIG_R SDLK_BACKSPACE -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 DINGUXSdlEventSource::remapKey(SDL_Event &ev, Common::Event &event) { if (ev.key.keysym.sym == PAD_UP) { if (ev.type == SDL_KEYDOWN) {