예제 #1
0
 /// <summary>
 /// Called when the mouse moves while a mouse button is down.
 /// </summary>
 /// <param name="deltax"></param>
 /// <param name="deltay"></param>
 /// <param name="deltaz"></param>
 protected virtual void MouseDragged(MouseMotionEvent e)
 {
     this.MouseMotion(e);
 }
예제 #2
0
 /// <summary>
 /// Called at the end of a rendering frame.
 /// </summary>
 /// <param name="deltax"></param>
 /// <param name="deltay"></param>
 /// <param name="deltaz"></param>
 protected virtual void MouseMotion(MouseMotionEvent e)
 {
     mCamera.Pitch(new Radian(-e.DeltaY * mDeltaTime * 500.0f));
     mCamera.Yaw(new Radian(-e.DeltaX * mDeltaTime * 500.0f));
 }