From 34b865877574c77f64d5da32b73fa68f03b9a87b Mon Sep 17 00:00:00 2001 From: Matlo Date: Wed, 6 Apr 2016 16:20:35 +0200 Subject: [PATCH] [Windows] Print screen key not working #378 --- shared/event/src/conversion.c | 2 +- shared/event/src/windows/winmm/scancodes.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/shared/event/src/conversion.c b/shared/event/src/conversion.c index 692f03d1..70672833 100644 --- a/shared/event/src/conversion.c +++ b/shared/event/src/conversion.c @@ -108,7 +108,7 @@ static const char* keynames[] = "KP_ENTER", "RCTRL", "KP_DIVIDE", - "PRINT", + "SYSRQ", "RALT", "LINEFEED", "HOME", diff --git a/shared/event/src/windows/winmm/scancodes.c b/shared/event/src/windows/winmm/scancodes.c index 7807b9e8..963c988b 100644 --- a/shared/event/src/windows/winmm/scancodes.c +++ b/shared/event/src/windows/winmm/scancodes.c @@ -38,6 +38,7 @@ static unsigned char noflag_keys[0xFF] = [0x6E] = KEY_F23, [0x76] = KEY_F24, [0x56] = KEY_102ND, + [0x54] = KEY_PRINT, // SYSRQ }; static unsigned char e0flag_keys[0xFF] = @@ -76,7 +77,7 @@ static unsigned char e0flag_keys[0xFF] = [0x24] = KEY_STOP, [0x32] = KEY_HOMEPAGE, [0x67] = KEY_REFRESH, - [0x37] = KEY_PRINT, + [0x37] = KEY_PRINT, // PRINTSCREEN [0x65] = KEY_SEARCH, [0x6D] = KEY_MEDIA, [0x5D] = KEY_COMPOSE,