diff options
author | David Robillard <d@drobilla.net> | 2023-10-21 09:17:38 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-10-21 09:56:17 -0400 |
commit | 720d4063eb18a00d02435658bd051dcd78f2e943 (patch) | |
tree | a1788e7a6b7e53c25cf35be2a8fe81e71277b55a | |
parent | f2be8e2b47e95748f8c4bc8ab522d89ef604f1ec (diff) | |
download | pugl-720d4063eb18a00d02435658bd051dcd78f2e943.tar.gz pugl-720d4063eb18a00d02435658bd051dcd78f2e943.tar.bz2 pugl-720d4063eb18a00d02435658bd051dcd78f2e943.zip |
Windows: Fix left and right key distinction
-rw-r--r-- | src/win.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 } |