瀏覽代碼

Merge pull request #1801 from cedric-h/master

Add enums for getting Scancodes from WM_KEYDOWN
gingerBill 3 年之前
父節點
當前提交
568869077e
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      core/sys/windows/key_codes.odin

+ 8 - 0
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