diff --git a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp index 68be98a67cb9e1ba91c58b071df6db75fd10de79..56d56cf05728cc0ce2140f47d0b39a19e0dc665c 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 176fb0813d21d492402f6d42fdd0bdcc5e138717..490dffdf9445a9578e43cf15f6b062b73b70baf1 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; };