Browse Source

sys/windows: add GetKeyState functions

hikari 3 years ago
parent
commit
01181517dc
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" (