From 01181517dc8c3b0970f01f9368ba952e8d21822a Mon Sep 17 00:00:00 2001 From: hikari Date: Thu, 24 Mar 2022 16:04:27 +0200 Subject: [PATCH] sys/windows: add GetKeyState functions --- core/sys/windows/user32.odin | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/sys/windows/user32.odin b/core/sys/windows/user32.odin index 705b9253a..fc001f26b 100644 --- a/core/sys/windows/user32.odin +++ b/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" (