diff options
author | Max Horn | 2003-03-10 01:37:34 +0000 |
---|---|---|
committer | Max Horn | 2003-03-10 01:37:34 +0000 |
commit | bce210cc2573cc4b416705f3f8f1eb16119e39cf (patch) | |
tree | 8bfcd7fb35d49cf0aabc9f9890a9e8e57c96c0d3 | |
parent | dacb430f8af80c42aceba62cfabc46296667333d (diff) | |
download | scummvm-rg350-bce210cc2573cc4b416705f3f8f1eb16119e39cf.tar.gz scummvm-rg350-bce210cc2573cc4b416705f3f8f1eb16119e39cf.tar.bz2 scummvm-rg350-bce210cc2573cc4b416705f3f8f1eb16119e39cf.zip |
fix for numpad fighting (I hope)
svn-id: r6790
-rw-r--r-- | backends/sdl/sdl-common.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp index e1686b3e06..00670919bb 100644 --- a/backends/sdl/sdl-common.cpp +++ b/backends/sdl/sdl-common.cpp @@ -481,6 +481,8 @@ static int mapKey(SDLKey key, SDLMod mod, Uint16 unicode) { if (key >= SDLK_F1 && key <= SDLK_F9) { return key - SDLK_F1 + 315; + } 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) { |