Skip to content
Snippets Groups Projects
Commit 451f7fae authored by Kris Tabea Helwig's avatar Kris Tabea Helwig
Browse files

Merge branch 'feature/toolkit_examples' of...

Merge branch 'feature/toolkit_examples' of https://git-ce.rwth-aachen.de/vr-vis/VR-Group/unreal-development/plugins/rwth-vr-toolkit into feature/toolkit_examples
parents cb2a2690 637a1fd5
No related branches found
No related tags found
2 merge requests!80UE5.3-2023.1-rc2,!77ContentExample-themed ToolkitExamples map.
Pipeline #351010 passed
This commit is part of merge request !77. Comments created here will be created in the context of that merge request.
...@@ -93,7 +93,7 @@ void ARWTHVRPawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponen ...@@ -93,7 +93,7 @@ void ARWTHVRPawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponen
{ {
Super::SetupPlayerInputComponent(PlayerInputComponent); Super::SetupPlayerInputComponent(PlayerInputComponent);
ThisPlayerInputComponent = PlayerInputComponent; ActivePlayerInputComponent = PlayerInputComponent;
APlayerController* PlayerController = Cast<APlayerController>(GetController()); APlayerController* PlayerController = Cast<APlayerController>(GetController());
if (!PlayerController) if (!PlayerController)
...@@ -147,7 +147,7 @@ void ARWTHVRPawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponen ...@@ -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 void ARWTHVRPawn::AddInputMappingContext(const APlayerController* PC, const UInputMappingContext* Context) const
......
...@@ -114,5 +114,5 @@ protected: ...@@ -114,5 +114,5 @@ protected:
void SetupMotionControllerSources(); void SetupMotionControllerSources();
private: private:
UInputComponent* ThisPlayerInputComponent; UInputComponent* ActivePlayerInputComponent;
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment