public static void StartPath(Vector2 start, Vector2 end) { if (FollowingPath) { CancelPath(); } LastPath = Utils.TickCount; _currentPath = new MousePath(start, end); }
public static void StartPathWorld(Vector3 end) { var screenEnd = end.ToScreenPoint(); if (!screenEnd.IsValid()) { return; } _currentPath = new MousePath(VirtualCursor.Position, screenEnd); }
public static void StartPath(Vector2 end) { _currentPath = new MousePath(VirtualCursor.Position, end); }
public static void CancelPath() { _currentPath = null; }
public Mouse(WindowOverlay overlay) { this.overlay = overlay; this.windMouse = new WindMouse(this); this.mousePosition = new Point(-1, -1); this.mousePath = new MousePath(); this.movementPositions = new LinkedList<Point>(); this.mouseCrossPen = new Pen(Color.Red, 2); }