private static void ReleaseKey(int key)
 {
     if (pressedKeys.Contains(key))
     {
         Win32Input.ReleaseKey(key);
         pressedKeys.Remove(key);
     }
 }
 private static void PressKey(int key)
 {
     Win32Input.PressKey(key);
     if (!pressedKeys.Contains(key))
     {
         pressedKeys.Add(key);
     }
 }
Exemple #3
0
        public static void Release(MouseButton button, Point position)
        {
            switch (button)
            {
            case MouseButton.Left:
                Win32Input.MouseEvent(Win32Input.MOUSEEVENTF_LEFTUP, position);
                break;

            case MouseButton.Right:
                Win32Input.MouseEvent(Win32Input.MOUSEEVENTF_RIGHTUP, position);
                break;
            }
        }
Exemple #4
0
 public static void Move(Point position)
 {
     Win32Input.MouseEvent(Win32Input.MOUSEEVENTF_MOVE, position);
 }