protected override void OnMouseUp(MouseEventArgs e) { base.OnMouseUp(e); //click down the left button if ((e.Button & MouseButtons.Left) != 0) { Pointtrace.AddPoint(((float)(2 * e.X - this.Width)) / this.Width, (float)(this.Height - 2 * e.Y) / this.Height); Pointtrace.Pressup(); } }
protected override void OnMouseMove(MouseEventArgs e) { base.OnMouseMove(e); if (Pointtrace.Flag == 1) { if (Tooltype.IsChalkorEra()) { Pointtrace.AddPoint(((float)(2 * e.X - this.Width)) / this.Width, (float)(this.Height - 2 * e.Y) / this.Height); } } }