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)
|
if (Controller != nullptr)
|
||||||
{
|
{
|
||||||
// add yaw and pitch input to controller
|
// add yaw and pitch input to controller
|
||||||
AddControllerYawInput(LookAxisVector.X);
|
AddControllerYawInput(LookAxisVector.X * MouseSens);
|
||||||
AddControllerPitchInput(LookAxisVector.Y);
|
AddControllerPitchInput(LookAxisVector.Y * MouseSens);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,6 +80,9 @@ private:
|
|||||||
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true"))
|
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true"))
|
||||||
UInputAction* SprintAction;
|
UInputAction* SprintAction;
|
||||||
|
|
||||||
|
UPROPERTY(EditAnywhere, Category = "Sensitivity")
|
||||||
|
float MouseSens = 1;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AEndlessVendettaCharacter();
|
AEndlessVendettaCharacter();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user