diff options
author | Bastien Bouclet | 2016-07-25 23:09:32 +0200 |
---|---|---|
committer | Bastien Bouclet | 2016-07-25 23:09:32 +0200 |
commit | a6efdf642238e0f54bedeb8cd0dfef6a93eb838e (patch) | |
tree | c93c1be431a351bb0bcdf9930c39753e45585776 | |
parent | 6cb9429b12e5d500d9732f56799727bd966192e5 (diff) | |
download | scummvm-rg350-a6efdf642238e0f54bedeb8cd0dfef6a93eb838e.tar.gz scummvm-rg350-a6efdf642238e0f54bedeb8cd0dfef6a93eb838e.tar.bz2 scummvm-rg350-a6efdf642238e0f54bedeb8cd0dfef6a93eb838e.zip |
SDL: Disable keycode remapping when building for WinCE
WinCE does not have MapVirtualKey.
-rw-r--r-- | backends/events/sdl/sdl-events.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/events/sdl/sdl-events.cpp b/backends/events/sdl/sdl-events.cpp index c7c717e300..acc1ff5dce 100644 --- a/backends/events/sdl/sdl-events.cpp +++ b/backends/events/sdl/sdl-events.cpp @@ -872,7 +872,7 @@ bool SdlEventSource::handleResizeEvent(Common::Event &event, int w, int h) { } SDLKey SdlEventSource::obtainKeycode(const SDL_keysym keySym) { -#if !SDL_VERSION_ATLEAST(2, 0, 0) && defined(WIN32) +#if !SDL_VERSION_ATLEAST(2, 0, 0) && defined(WIN32) && !defined(_WIN32_WCE) // WORKAROUND: SDL 1.2 on Windows does not use the user configured keyboard layout, // resulting in "keySym.sym" values to always be those expected for an US keyboard. // For example, SDL returns SDLK_Q when pressing the 'A' key on an AZERTY keyboard. @@ -885,7 +885,7 @@ SDLKey SdlEventSource::obtainKeycode(const SDL_keysym keySym) { // The keycode returned by SDL is kept for the number keys. // Querying the keyboard layout for those would return the base key values // for AZERTY keyboards, which are not numbers. For example, SDLK_1 would - // map to SDLK_AMPERSAND. This is theoratically correct but practically unhelpful, + // map to SDLK_AMPERSAND. This is theoretically correct but practically unhelpful, // because it makes it impossible to handle key combinations such as "ctrl-1". return keySym.sym; } |