diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-23 17:35:13 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-23 17:35:13 -0700 |
commit | 3ca9645e0b214fce990f2cf63b9c3294fa6b0179 (patch) | |
tree | 13c46da667f4785e6155131cf57d528b86ff3ff9 /system/include/SDL/SDL_keycode.h | |
parent | 6b2a2b6c8a3f416660be36a846a45cf635af2a5d (diff) |
alter SDL scancode mask, to help older SDL apps work
Diffstat (limited to 'system/include/SDL/SDL_keycode.h')
-rw-r--r-- | system/include/SDL/SDL_keycode.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/include/SDL/SDL_keycode.h b/system/include/SDL/SDL_keycode.h index 5be1f715..472ca28e 100644 --- a/system/include/SDL/SDL_keycode.h +++ b/system/include/SDL/SDL_keycode.h @@ -41,7 +41,9 @@ */ typedef Sint32 SDL_Keycode; -#define SDLK_SCANCODE_MASK (1<<30) +// XXX Emscripten: We use a mask of 10, which is closer to old SDL, and gives +// a better chance of SDL 1.X apps working +#define SDLK_SCANCODE_MASK (1<<10) #define SDL_SCANCODE_TO_KEYCODE(X) (X | SDLK_SCANCODE_MASK) enum |