aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2022-05-22 20:39:59 +0100
committerGitHub <noreply@github.com>2022-05-22 20:39:59 +0100
commit568869077eacaa982c2e83f36afb7b45f4200557 (patch)
tree02c9baa62cc97da8db3b4e9f57c8f794e6a5f794
parent5609221831e79d91c58d9efe3e6dcdde473b07ae (diff)
parentf25a3f2a7d01d5ffcea80b7e4a77d9095ff22667 (diff)
Merge pull request #1801 from cedric-h/master
Add enums for getting Scancodes from WM_KEYDOWN
-rw-r--r--core/sys/windows/key_codes.odin8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/sys/windows/key_codes.odin b/core/sys/windows/key_codes.odin
index 2f6e01116..284b0e437 100644
--- a/core/sys/windows/key_codes.odin
+++ b/core/sys/windows/key_codes.odin
@@ -1,6 +1,14 @@
// +build windows
package sys_windows
+// https://docs.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input
+KF_EXTENDED :: 0x0100
+KF_DLGMODE :: 0x0800
+KF_MENUMODE :: 0x1000
+KF_ALTDOWN :: 0x2000
+KF_REPEAT :: 0x4000
+KF_UP :: 0x8000
+
// https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
// Virtual Keys, Standard Set
VK_LBUTTON :: 0x01