added input action reference for walking, binded IA_Walk to Move() function

This commit is contained in:
Ji Yoon Rhee 2024-06-10 18:41:00 +09:00
parent 06bb51a198
commit 68d9fafdf6
2 changed files with 7 additions and 0 deletions

View File

@ -118,6 +118,9 @@ void Ahwanyoung2Character::SetupPlayerInputComponent(class UInputComponent* Play
//Moving
EnhancedInputComponent->BindAction(MoveAction, ETriggerEvent::Triggered, this, &Ahwanyoung2Character::Move);
//Walking
EnhancedInputComponent->BindAction(WalkAction, ETriggerEvent::Triggered, this, &Ahwanyoung2Character::Move);
//Looking
EnhancedInputComponent->BindAction(LookAction, ETriggerEvent::Triggered, this, &Ahwanyoung2Character::Look);

View File

@ -43,6 +43,10 @@ class Ahwanyoung2Character : public ACharacter
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true"))
class UInputAction* LookAction;
/** Walk Input Action */
UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = Input, meta = (AllowPrivateAccess = "true"))
class UInputAction* WalkAction;
#pragma endregion
private: