예제 #1
0
 private void glControl1_MouseUp(object sender, MouseEventArgs e)
 {
     if (glc_state == GLCState.DragRotation)
     glc_state = GLCState.Free;
 }
예제 #2
0
 private void glControl1_MouseDown(object sender, MouseEventArgs e)
 {
     previous_mouse_x = e.X;
     previous_mouse_y = e.Y;
     if (e.Button == MouseButtons.Left && glc_state == GLCState.Free)
     glc_state = GLCState.DragRotation;
 }