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