コード例 #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));
 }