PlayerController - InputAxis firing continuously

Hello all,

Quick question, I’m making a PlayerController to handle Input (Action event and Axis event). Found that the Axis event fire continuously like a tick event instead of when axis input is change (Axis event, as it work if I handle it from my character BP)

Why is that ? How to not ?

Log on screen keep adding “0” if axis doesn’t change, or “-1” / “1” if it does.

Thx ya all

From Input Action And Axis Mappings In UE4 - Unreal Engine

“In both C++ and Blueprints, Axis events will fire every frame passing the current value of the Axis while Action events will have the Pressed and Released outputs fire as the key(s) are pressed.”

So I don’t know why and how to switch it off, but it is intended. If you want an event to be fired when the axis value changes, simply save the axis value each frame and compare it to the value in the next frame. If it differs, you can fire a custom event.

Thanks for the feedback.
But if it’s intended, then my question should be : Why don’t they fire continuously when set up in my character ?!

When you setup the “standard” character with your axis connected to “Add Movement Input” nodes, their events are still fired every frame. But after each frame the internal control vector, to which the input vectors are added, is resetted to (0,0,0). So each frame you have to add the same input vector if you want to keep the movement, which is done automatically by the events.