File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
examples/window/Box2D.Window Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public class CameraView : IView
16
16
public CameraView ( )
17
17
{
18
18
Position = Vector2 . Zero ;
19
- Zoom = Constants . MinimumCameraZoom ;
19
+ Zoom = WindowSettings . MinimumCameraZoom ;
20
20
}
21
21
22
22
public void Update ( )
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ protected override void OnMouseWheel(MouseWheelEventArgs eventArgs)
38
38
base . OnMouseWheel ( eventArgs ) ;
39
39
40
40
var value = ( float ) eventArgs . Value / 1000 ;
41
- if ( value < Constants . MinimumCameraZoom )
41
+ if ( value < WindowSettings . MinimumCameraZoom )
42
42
{
43
- value = Constants . MinimumCameraZoom ;
43
+ value = WindowSettings . MinimumCameraZoom ;
44
44
}
45
45
46
46
if ( view != null )
@@ -78,7 +78,7 @@ protected override void OnUpdateFrame(FrameEventArgs eventArgs)
78
78
var y = Mouse . GetState ( ) . Y ;
79
79
var direction = new Vector2 ( x , - y ) - view . Position ;
80
80
81
- view . Position += direction * Constants . MouseMoveSpeed ;
81
+ view . Position += direction * WindowSettings . MouseMoveSpeed ;
82
82
}
83
83
}
84
84
else
@@ -89,7 +89,7 @@ protected override void OnUpdateFrame(FrameEventArgs eventArgs)
89
89
var y = GetVertical ( ) ;
90
90
var direction = new Vector2 ( x , y ) ;
91
91
92
- view . Position += direction * Constants . KeyboardMoveSpeed ;
92
+ view . Position += direction * WindowSettings . KeyboardMoveSpeed ;
93
93
}
94
94
}
95
95
}
You can’t perform that action at this time.
0 commit comments