Add editor camera speed up for gamepad right trigger

This commit is contained in:
2022-07-25 09:52:42 +02:00
parent 5fea0cd693
commit a4478b9497
+2
View File
@@ -1253,6 +1253,8 @@ namespace FlaxEditor.Viewport
}
moveDelta.Normalize();
moveDelta *= _movementSpeed;
if (FlaxEngine.Input.GamepadsCount > 0)
moveDelta *= Mathf.Remap(GetGamepadAxis(GamepadAxis.RightTrigger), 0, 1, 1, 4.0f);
// Update
moveDelta *= dt * (60.0f * 4.0f);