Beispiel #1
0
 /// <summary>
 /// Emulate key release.
 /// </summary>
 /// <param name="key">VirtualKeyCode of key to emulate.</param>
 public static void SendKeyUp(Native.VirtualKeyCode key) => Native.API.SendKeyUp(key);
Beispiel #2
0
 /// <summary>
 /// Get whether a key is down or not.
 /// </summary>
 /// <param name="key">Key to check state of.</param>
 /// <returns>Whether the key is down or not</returns>
 public static bool IsKeyDown(Native.VirtualKeyCode key) => Native.API.IsKeyDown(key);