From e8f8b74d619bcd2f023b12e4ac3dbfcf082e9c44 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Mon, 6 Sep 2021 22:06:02 +0600 Subject: [PATCH] Add Windows key mappings --- src/unix/unix.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/unix/unix.c b/src/unix/unix.c index 4ce8d5e17..16cedb1ae 100644 --- a/src/unix/unix.c +++ b/src/unix/unix.c @@ -154,7 +154,11 @@ static const uint16_t sdl_to_xt[0x200] = [SDL_SCANCODE_KP_2] = 0x50, [SDL_SCANCODE_KP_1] = 0x4F, [SDL_SCANCODE_KP_0] = 0x52, - [SDL_SCANCODE_KP_PERIOD] = 0x53 + [SDL_SCANCODE_KP_PERIOD] = 0x53, + + [SDL_SCANCODE_LGUI] = 0x15B, + [SDL_SCANCODE_RGUI] = 0x15C, + [SDL_SCANCODE_APPLICATION] = 0x15D }; typedef struct sdl_blit_params