fixed movement
This commit is contained in:
10
Window.cs
10
Window.cs
@@ -73,7 +73,7 @@ namespace Voxel
|
||||
{
|
||||
base.OnFramebufferResize(e);
|
||||
|
||||
Camera.UpdateProjection(e.Width, e.Height);
|
||||
Camera.UpdateSize(e.Width, e.Height);
|
||||
|
||||
GL.Viewport(0, 0, e.Width, e.Height);
|
||||
}
|
||||
@@ -92,7 +92,7 @@ namespace Voxel
|
||||
CursorState = CursorState.Grabbed;
|
||||
VSync = VSyncMode.On;
|
||||
|
||||
Camera.UpdateProjection(Width, Height);
|
||||
Camera.UpdateSize(Width, Height);
|
||||
}
|
||||
|
||||
protected override void OnMouseMove(MouseMoveEventArgs e)
|
||||
@@ -129,11 +129,7 @@ namespace Voxel
|
||||
protected override void OnMouseWheel(MouseWheelEventArgs e)
|
||||
{
|
||||
base.OnMouseWheel(e);
|
||||
|
||||
bool inverted = false;
|
||||
|
||||
if (e.OffsetY < 0)
|
||||
inverted = true;
|
||||
Input.MouseWheel(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user