Exemplo n.º 1
0
 private static void ReleaseKey(int key)
 {
     if (pressedKeys.Contains(key))
     {
         Win32Input.ReleaseKey(key);
         pressedKeys.Remove(key);
     }
 }
Exemplo n.º 2
0
 private static void PressKey(int key)
 {
     Win32Input.PressKey(key);
     if (!pressedKeys.Contains(key))
     {
         pressedKeys.Add(key);
     }
 }
Exemplo n.º 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;
            }
        }
Exemplo n.º 4
0
 public static void Move(Point position)
 {
     Win32Input.MouseEvent(Win32Input.MOUSEEVENTF_MOVE, position);
 }