Alright, thanks for your help so far. I moved the BindAxis
to SetupInputComponent
, where they belong.
It seems that I have to call Super::SetupInputComponent
first, in order to avoid an access violation and a crash, like this:
void AMyPlayerController::SetupInputComponent()
{
Super::SetupInputComponent();
InputComponent->BindVectorAxis("MouseMove", this, &AMyPlayerController::MouseMove);
}
Maybe you can confirm that.
Moving from BindAxisVector
to BindAxis
gives me just a float parameter to work with, where I really want the “Mouse XY 2D-Axis” and that float parameter is always zero.