From 19d88a3bdaa28afd51ad45897ff6705dff8e3c18 Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Mon, 27 Feb 2023 20:12:18 +0100 Subject: [PATCH] Tweak horizontal camera speed for controllers --- P3D/Overworld/OverworldCamera.vb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/P3D/Overworld/OverworldCamera.vb b/P3D/Overworld/OverworldCamera.vb index 39eea21f9..bf8d101f2 100644 --- a/P3D/Overworld/OverworldCamera.vb +++ b/P3D/Overworld/OverworldCamera.vb @@ -669,10 +669,14 @@ Public Class OverworldCamera Private Sub FirstPersonMovement() Dim pressedDirection As Integer = -1 + Dim ControllerTurnModifier As Single = 1.0F + If ControllerHandler.ButtonDown(Buttons.RightThumbstickLeft) = True OrElse ControllerHandler.ButtonDown(Buttons.RightThumbstickRight) = True Then + ControllerTurnModifier = 0.25F + End If If YawLocked = False And Turning = False Then If (KeyBoardHandler.KeyDown(KeyBindings.LeftMoveKey) = True Or ControllerHandler.ButtonDown(Buttons.RightThumbstickLeft) = True) And Turning = False Then If _freeCameraMode = True Then - Yaw += RotationSpeed * 40.0F + Yaw += RotationSpeed * 40.0F * ControllerTurnModifier ClampYaw() Else @@ -690,7 +694,7 @@ Public Class OverworldCamera End If If (KeyBoardHandler.KeyDown(KeyBindings.RightMoveKey) = True Or ControllerHandler.ButtonDown(Buttons.RightThumbstickRight) = True) And Turning = False Then If _freeCameraMode = True Then - Yaw -= RotationSpeed * 40.0F + Yaw -= RotationSpeed * 40.0F * ControllerTurnModifier ClampYaw() Else