Skip to content
Snippets Groups Projects

Feature(pawn, movement): Exposed PlayerInputComponent, Exposed SetupPlayerInput to BPs.

3 files
+ 12
0
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -93,6 +93,8 @@ void ARWTHVRPawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponen
{
Super::SetupPlayerInputComponent(PlayerInputComponent);
ThisPlayerInputComponent = PlayerInputComponent;
APlayerController* PlayerController = Cast<APlayerController>(GetController());
if (!PlayerController)
{
@@ -145,6 +147,9 @@ void ARWTHVRPawn::SetupPlayerInputComponent(UInputComponent* PlayerInputComponen
}
}
UInputComponent* ARWTHVRPawn::GetPlayerInputComponent() { return ThisPlayerInputComponent; }
void ARWTHVRPawn::AddInputMappingContext(const APlayerController* PC, const UInputMappingContext* Context) const
{
if (Context)
Loading