fixed movement

This commit is contained in:
maxwes08
2025-10-07 10:37:46 +02:00
parent bd2c87ddd1
commit 7835ade2c1
6 changed files with 91 additions and 30 deletions

View File

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