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