public static void SetCursorPos(int x, int y) { WinAPI.SetCursorPos(x, y); }
public static bool IsKeyPressedAsync(VK key) { int state = WinAPI.GetAsyncKeyState((int)key); return(state == -32767); }
public static void KeyDown(VK key) { WinAPI.keybd_event((byte)key, 0, 0, IntPtr.Zero); }
public static bool IsKeyPressed(VK key) { int state = WinAPI.GetKeyState((int)key); return(state < 0); }