PlayerController - InputAxis firing continuously
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
"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.
answered Apr 13 '17 at 01:38 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here