Ejemplo n.º 1
0
        void UserControl1_MouseMove(object sender, MouseEventArgs e)
        {
            mouseLocation = viewport.TransformToViewport(this.ClientRectangle, e.Location);
            viewport.MouseMove(new Vector2(e.Location.X, e.Location.Y));

            selectedItemNeedsUpdate = true;
            if (e.Button == MouseButtons.None)
            {
                // Nothing pressed, enable hover highlighting?
            }

            if (clickedObject != null)
            {
                //if (e.Button == MouseButtons.Left)
                //{
                clickedObject.MouseDrag(mouseLocation);
                //}
                //else
                //{
                //    clickedObject.MouseDrag(new Vector2 (e.loc
            }
            this.Invalidate();
        }