diff options
author | Max Horn | 2007-06-22 17:51:51 +0000 |
---|---|---|
committer | Max Horn | 2007-06-22 17:51:51 +0000 |
commit | 55f93678b8589b74922609d55774222ee7119f55 (patch) | |
tree | 559ac837c9244197e5b4da09d65854731c464e36 /backends/platform/sdl | |
parent | 39405cbb25b5376660dfb0852f2aa1cf1e337888 (diff) | |
download | scummvm-rg350-55f93678b8589b74922609d55774222ee7119f55.tar.gz scummvm-rg350-55f93678b8589b74922609d55774222ee7119f55.tar.bz2 scummvm-rg350-55f93678b8589b74922609d55774222ee7119f55.zip |
Heavily modified/reduced version of patch #1741454 (EVENTS: ASCII enum)
svn-id: r27612
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r-- | backends/platform/sdl/events.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/sdl/events.cpp b/backends/platform/sdl/events.cpp index f865282876..8738e63d95 100644 --- a/backends/platform/sdl/events.cpp +++ b/backends/platform/sdl/events.cpp @@ -52,7 +52,7 @@ static int mapKey(SDLKey key, SDLMod mod, Uint16 unicode) { if (key >= SDLK_F1 && key <= SDLK_F9) { - return key - SDLK_F1 + 315; + return key - SDLK_F1 + ASCII_F1; } else if (key >= SDLK_KP0 && key <= SDLK_KP9) { return key - SDLK_KP0 + '0'; } else if (key >= SDLK_UP && key <= SDLK_PAGEDOWN) { |