Add editor camera speed up for gamepad right trigger
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user