// 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(); }
// 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; }
// 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(); }
// 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(); }