Hi, Unreal gurus
I have a c++ character which is the same in SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) just like default cpp 3rd person character.
void AVaultCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
check( PlayerInputComponent );
//Super::SetupPlayerInputComponent(PlayerInputComponent);
PlayerInputComponent->BindAction( "Jump", IE_Pressed, this, &AVaultCharacter::Jump );
PlayerInputComponent->BindAction( "Jump", IE_Released, this, &ACharacter::StopJumping );
PlayerInputComponent->BindAxis( "Move Forward / Backward", this, &AVaultCharacter::MoveForward );
PlayerInputComponent->BindAxis( "Move Right / Left", this, &AVaultCharacter::MoveRight );
PlayerInputComponent->BindAxis( "Turn Right / Left Mouse", this, &APawn::AddControllerYawInput );
PlayerInputComponent->BindAxis( "Turn Right / Left Gamepad", this, &AVaultCharacter::TurnAtRate );
PlayerInputComponent->BindAxis( "Look Up / Down Mouse", this, &APawn::AddControllerPitchInput );
PlayerInputComponent->BindAxis( "Look Up / Down Gamepad", this, &AVaultCharacter::LookUpAtRate );
PlayerInputComponent->BindTouch( IE_Pressed, this, &AVaultCharacter::TouchStarted );
PlayerInputComponent->BindTouch( IE_Released, this, &AVaultCharacter::TouchStopped );
PlayerInputComponent->BindAction( "ResetVR", IE_Pressed, this, &AVaultCharacter::OnResetVR );
}
But unfortunately, I found it requiring RIGHT MOUSE BUTTON down when I want to move the camera.
I want to debug it and setting a breakponit in APawn::AddControllerYawInput(). But when it triggered, I cannot move the cursor and I don’t know how to go on debugging like that. (I can only do keyboard debugging in GDB, not visual studio)
Do you have any suggestion about these 2 questions?