GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat(infra): add `keybd_event` method from Windows API
Lars Bergerc2bd9cd12eac
diff --git a/LarsWM.Infrastructure/WindowsApi/WindowsApiService.cs b/LarsWM.Infrastructure/WindowsApi/WindowsApiService.csindex 40c56007..0659167d 100644--- a/LarsWM.Infrastructure/WindowsApi/WindowsApiService.cs+++ b/LarsWM.Infrastructure/WindowsApi/WindowsApiService.cs@@ -268,6 +268,8 @@ namespace LarsWM.Infrastructure.WindowsApi[DllImport("user32.dll")]public static extern short GetKeyState(Keys nVirtKey);+ [DllImport("user32.dll", EntryPoint = "keybd_event")]+ public static extern void KeybdEvent(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);[DllImport("User32.dll")]public static extern short GetAsyncKeyState(Keys key);