Beispiel #1
0
 // We use the left mouse button to do exclusive capture of the mouse so we can drag and drag
 // to rotate the cube without ever leaving the control
 private void OnGraphicsControlHwndLButtonDown(object sender, MouseEventArgs e)
 {
     _output.AppendLine("Mouse left button down");
     _previousPosition = e.GetPosition(this);
     GraphicsControl.CaptureMouse();
     GraphicsControl.Focus();
 }
Beispiel #2
0
 // We use the left mouse button to do exclusive capture of the mouse so we can drag and drag
 // to rotate the cube without ever leaving the control
 private void OnGraphicsControlHwndLButtonDown(object sender, MouseEventArgs e)
 {
     _previousPosition = e.GetPosition(this);
     GraphicsControl.CaptureMouse();
     GraphicsControl.Focus();
     this.Cursor = Cursors.None;
     _lockCursor = true;
 }
Beispiel #3
0
 // We use the left mouse button to do exclusive capture of the mouse so we can drag and drag
 // to rotate the cube without ever leaving the control
 private void OnGraphicsControlHwndLButtonDown(object sender, MouseEventArgs e)
 {
     output.AppendLine("Mouse left button down");
     GraphicsControl.CaptureMouse();
     GraphicsControl.Focus();
 }
Beispiel #4
0
        // We use the left mouse button to do exclusive capture of the mouse so we can drag and drag
        // to rotate the cube without ever leaving the control

        private void OnGraphicsControlHwndLButtonDown(object sender, MouseEventArgs e)
        {
            _previousPosition = e.GetPosition(this);
            GraphicsControl.CaptureMouse();
            GraphicsControl.Focus();
        }