From 637a1fd523f167f4182334d4b3ecb78fe978b181 Mon Sep 17 00:00:00 2001 From: David Gilbert <david.gilbert@rwth-aachen.de> Date: Wed, 24 Jan 2024 11:31:11 +0100 Subject: [PATCH] refactor(pawn): Renames InputComponent member var. --- Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp | 4 ++-- Source/RWTHVRToolkit/Public/Pawn/RWTHVRPawn.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp index 68be98a6..56d56cf0 100644 --- a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp +++ b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp @@ -93,7 +93,7 @@ void ARWTHVRPawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponen { Super::SetupPlayerInputComponent(PlayerInputComponent); - ThisPlayerInputComponent = PlayerInputComponent; + ActivePlayerInputComponent = PlayerInputComponent; APlayerController* PlayerController = Cast<APlayerController>(GetController()); if (!PlayerController) @@ -147,7 +147,7 @@ void ARWTHVRPawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponen } } -UInputComponent* ARWTHVRPawn::GetPlayerInputComponent() { return ThisPlayerInputComponent; } +UInputComponent* ARWTHVRPawn::GetPlayerInputComponent() { return ActivePlayerInputComponent; } void ARWTHVRPawn::AddInputMappingContext(const APlayerController* PC, const UInputMappingContext* Context) const diff --git a/Source/RWTHVRToolkit/Public/Pawn/RWTHVRPawn.h b/Source/RWTHVRToolkit/Public/Pawn/RWTHVRPawn.h index 176fb081..490dffdf 100644 --- a/Source/RWTHVRToolkit/Public/Pawn/RWTHVRPawn.h +++ b/Source/RWTHVRToolkit/Public/Pawn/RWTHVRPawn.h @@ -114,5 +114,5 @@ protected: void SetupMotionControllerSources(); private: - UInputComponent* ThisPlayerInputComponent; + UInputComponent* ActivePlayerInputComponent; }; -- GitLab