Exemple #1
0
 private void AnimPreviewDisplay_OnWheel(MouseWheelActionInfo mouseWheelActionInfo)
 {
     Camera.Zoom = MathHelper.CalculateCameraZoom(Camera, mouseWheelActionInfo.WheelDelta);
 }
Exemple #2
0
 private void MainDisplay_OnWheel(MouseWheelActionInfo mouseWheelActionInfo)
 {
     Camera.ZoomToWorldPoint(WorldMousePosition.X, WorldMousePosition.Y,
                             MathHelper.CalculateCameraZoomFactor(Camera, mouseWheelActionInfo.WheelDelta));
 }
 private void AnimConfigDisplay_OnWheel(MouseWheelActionInfo mouseWheelActionInfo)
 {
     MoveCamera(AnimFrameSize.Width * mouseWheelActionInfo.WheelDelta);
 }