From 6d0499b0e3fea9c48851f9cfadc1005f18ba4157 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 6 Jul 2021 23:34:11 -0500 Subject: [PATCH] Remove super key workaround Moonlight can now pass the super key natively --- sunshine/platform/linux/input.cpp | 4 ++-- sunshine/platform/windows/input.cpp | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sunshine/platform/linux/input.cpp b/sunshine/platform/linux/input.cpp index ad3397d5..78e08024 100644 --- a/sunshine/platform/linux/input.cpp +++ b/sunshine/platform/linux/input.cpp @@ -290,8 +290,8 @@ uint16_t keysym(uint16_t modcode) { return XK_Control_R; case 0xA4: return XK_Alt_L; - case 0xA5: /* return XK_Alt_R; */ - return XK_Super_L; + case 0xA5: + return XK_Alt_R; case 0x5B: return XK_Super_L; case 0x5C: diff --git a/sunshine/platform/windows/input.cpp b/sunshine/platform/windows/input.cpp index 6889de00..215a38a5 100755 --- a/sunshine/platform/windows/input.cpp +++ b/sunshine/platform/windows/input.cpp @@ -201,10 +201,6 @@ void scroll(input_t &input, int distance) { } void keyboard(input_t &input, uint16_t modcode, bool release) { - if(modcode == VK_RMENU) { - modcode = VK_LWIN; - } - INPUT i {}; i.type = INPUT_KEYBOARD; auto &ki = i.ki;