aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-10-21 09:17:38 -0400
committerDavid Robillard <d@drobilla.net>2023-10-21 09:56:17 -0400
commit720d4063eb18a00d02435658bd051dcd78f2e943 (patch)
treea1788e7a6b7e53c25cf35be2a8fe81e71277b55a
parentf2be8e2b47e95748f8c4bc8ab522d89ef604f1ec (diff)
downloadpugl-720d4063eb18a00d02435658bd051dcd78f2e943.tar.gz
pugl-720d4063eb18a00d02435658bd051dcd78f2e943.tar.bz2
pugl-720d4063eb18a00d02435658bd051dcd78f2e943.zip
Windows: Fix left and right key distinction
-rw-r--r--src/win.c12
1 files 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
}