I have a few Axis input bindings that I want to enable/disable on the fly easily.
BindAxis returns an FInputBinding reference. I tried storing a pointer to the input binding. I noticed it says in the docs: “Returned reference is only guaranteed to be valid until another axis is bound.” so I guess the InputBinding object is later copied or something?
FInputBinding has a bConsumeInput field but changing it has no results.
I also tried using the index instead like this, which also didn’t work:
Debug3PMoveForwardBinding = InputComponent->AxisBindings.Num();
InputComponent->BindAxis(FSFMovementAxisInputConstants::Instance.MoveForward, this, &ASFPlayerController::Debug3PMoveForward);
InputComponent->AxisBindings[Debug3PMoveForwardBinding].bConsumeInput = false;