private void Stage_MouseDown(object sender, MouseEventArgs e) { glCoord glCo = new glCoord(); if (e.Button == System.Windows.Forms.MouseButtons.Left) { moving = true; startX = (int)glCo.X; startY = (int)glCo.Y; } }
private void Stage_MouseMove(object sender, MouseEventArgs e) { glCoord glCo = new glCoord(); if (moving) { angleX = angleX + (glCo.X - startX); angleY = angleY + (glCo.Y - startY); startX = (int)glCo.X; startY = (int)glCo.Y; Render(); } }