Since ShooterCharacter
is a Pawn
and is a Character
, it does have the Jump
and AddControllerXxxInput
functions. So we can just take them from AShooterCharacter
, i.e. these work just fine:
PlayerInputComponent->BindAxis(TEXT("LookUp"), this, &AShooterCharacter::AddControllerPitchInput);
PlayerInputComponent->BindAxis(TEXT("LookRight"), this, &AShooterCharacter::AddControllerYawInput);
PlayerInputComponent->BindAction(TEXT("Jump"), EInputEvent::IE_Pressed, this, &AShooterCharacter::Jump);