Disable backwardsmovekey in first person

This commit is contained in:
JappaWakka 2024-08-20 12:30:14 +02:00
parent 1e0fb98359
commit 0738507791

View File

@ -718,15 +718,16 @@ Public Class OverworldCamera
pressedDirection = 1 pressedDirection = 1
End If End If
End If End If
If (KeyBoardHandler.KeyDown(KeyBindings.BackwardMoveKey) = True Or ControllerHandler.ButtonDown(Buttons.LeftThumbstickDown) = True) And Turning = False Then '// Disable turn around
If _freeCameraMode = True Then 'If (KeyBoardHandler.KeyDown(KeyBindings.BackwardMoveKey) = True Or ControllerHandler.ButtonDown(Buttons.LeftThumbstickDown) = True) And Turning = False Then
If _moved <= 0F Then ' If _freeCameraMode = True Then
Turn(2) ' If _moved <= 0F Then
End If ' Turn(2)
Else ' End If
pressedDirection = 2 ' Else
End If ' pressedDirection = 2
End If ' End If
'End If
If (KeyBoardHandler.KeyDown(KeyBindings.RightMoveKey) = True Or ControllerHandler.ButtonDown(Buttons.RightThumbstickRight) = True) And Turning = False Then If (KeyBoardHandler.KeyDown(KeyBindings.RightMoveKey) = True Or ControllerHandler.ButtonDown(Buttons.RightThumbstickRight) = True) And Turning = False Then
If _freeCameraMode = True Then If _freeCameraMode = True Then
Yaw -= RotationSpeed * 40.0F * ControllerTurnModifier Yaw -= RotationSpeed * 40.0F * ControllerTurnModifier