aboutsummaryrefslogtreecommitdiff
path: root/system/include/SDL/SDL_keycode.h
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/SDL/SDL_keycode.h')
-rw-r--r--system/include/SDL/SDL_keycode.h4
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