Implemented Sensitivity Settings for Devs
This commit is contained in:
parent
a84391c377
commit
542b09012b
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset
(Stored with Git LFS)
BIN
EndlessVendetta/Content/FirstPerson/Blueprints/BP_FirstPersonCharacter.uasset
(Stored with Git LFS)
Binary file not shown.
@ -633,8 +633,8 @@ void AEndlessVendettaCharacter::Look(const FInputActionValue& Value)
|
||||
if (Controller != nullptr)
|
||||
{
|
||||
// add yaw and pitch input to controller
|
||||
AddControllerYawInput(LookAxisVector.X);
|
||||
AddControllerPitchInput(LookAxisVector.Y);
|
||||
AddControllerYawInput(LookAxisVector.X * MouseSens);
|
||||
AddControllerPitchInput(LookAxisVector.Y * MouseSens);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -80,6 +80,9 @@ private:
|
||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true"))
|
||||
UInputAction* SprintAction;
|
||||
|
||||
UPROPERTY(EditAnywhere, Category = "Sensitivity")
|
||||
float MouseSens = 1;
|
||||
|
||||
public:
|
||||
AEndlessVendettaCharacter();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user