From 720d4063eb18a00d02435658bd051dcd78f2e943 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 21 Oct 2023 09:17:38 -0400 Subject: Windows: Fix left and right key distinction --- src/win.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/win.c b/src/win.c index e020b86..6838423 100644 --- a/src/win.c +++ b/src/win.c @@ -448,9 +448,9 @@ keySymToSpecial(const WPARAM sym, const bool ext) case VK_RETURN: return PUGL_KEY_PAD_ENTER; case VK_INSERT: return PUGL_KEY_INSERT; case VK_DELETE: return PUGL_KEY_DELETE; - case VK_SHIFT: return PUGL_KEY_SHIFT_L; - case VK_CONTROL: return PUGL_KEY_CTRL_L; - case VK_MENU: return PUGL_KEY_ALT_L; + case VK_SHIFT: return PUGL_KEY_SHIFT_R; + case VK_CONTROL: return PUGL_KEY_CTRL_R; + case VK_MENU: return PUGL_KEY_ALT_R; } // clang-format on } else { @@ -458,9 +458,9 @@ keySymToSpecial(const WPARAM sym, const bool ext) switch (sym) { case VK_INSERT: return PUGL_KEY_PAD_INSERT; case VK_DELETE: return PUGL_KEY_PAD_DELETE; - case VK_SHIFT: return PUGL_KEY_SHIFT_R; - case VK_CONTROL: return PUGL_KEY_CTRL_R; - case VK_MENU: return PUGL_KEY_ALT_R; + case VK_SHIFT: return PUGL_KEY_SHIFT_L; + case VK_CONTROL: return PUGL_KEY_CTRL_L; + case VK_MENU: return PUGL_KEY_ALT_L; } // clang-format on } -- cgit v1.2.1