Add option to invert the y-axis mouse rotation in the editor viewport.

This commit is contained in:
Chandler Cox
2024-08-21 14:32:47 -05:00
parent d779862271
commit 6fad87002d
2 changed files with 9 additions and 0 deletions

View File

@@ -1704,6 +1704,8 @@ namespace FlaxEditor.Viewport
// Update
moveDelta *= dt * (60.0f * 4.0f);
mouseDelta *= 0.1833f * MouseSpeed * _mouseSensitivity;
if (options.Viewport.InvertMouseYAxisRotation)
mouseDelta *= new Float2(1, -1);
UpdateView(dt, ref moveDelta, ref mouseDelta, out var centerMouse);
// Move mouse back to the root position