コード例 #1
0
 private void AnimPreviewDisplay_OnWheel(MouseWheelActionInfo mouseWheelActionInfo)
 {
     Camera.Zoom = MathHelper.CalculateCameraZoom(Camera, mouseWheelActionInfo.WheelDelta);
 }
コード例 #2
0
ファイル: MainDisplay.cs プロジェクト: rh101/SpriteVortex
 private void MainDisplay_OnWheel(MouseWheelActionInfo mouseWheelActionInfo)
 {
     Camera.ZoomToWorldPoint(WorldMousePosition.X, WorldMousePosition.Y,
                             MathHelper.CalculateCameraZoomFactor(Camera, mouseWheelActionInfo.WheelDelta));
 }
コード例 #3
0
 private void AnimConfigDisplay_OnWheel(MouseWheelActionInfo mouseWheelActionInfo)
 {
     MoveCamera(AnimFrameSize.Width * mouseWheelActionInfo.WheelDelta);
 }