Browse Source

Merge pull request #1654 from ftphikari/master

sys/windows: add GetKeyState functions
gingerBill 3 years ago
parent
commit
e7b96cf286
1 changed files with 3 additions and 0 deletions
  1. 3 0
      core/sys/windows/user32.odin

+ 3 - 0
core/sys/windows/user32.odin

@@ -108,6 +108,9 @@ foreign user32 {
 
 	BeginPaint :: proc(hWnd: HWND, lpPaint: ^PAINTSTRUCT) -> HDC ---
 	EndPaint :: proc(hWnd: HWND, lpPaint: ^PAINTSTRUCT) -> BOOL ---
+
+	GetKeyState :: proc(nVirtKey: c_int) -> SHORT ---
+	GetAsyncKeyState :: proc(vKey: c_int) -> SHORT ---
 }
 
 CreateWindowA :: #force_inline proc "stdcall" (