Leafwing-Studios / leafwing-input-manager

A straightforward stateful input manager for the Bevy game engine.
Apache License 2.0
686 stars 106 forks source link

Add Triggerlike inputs that have a 0 to 1 value #551

Open alice-i-cecile opened 3 months ago

alice-i-cecile commented 3 months ago

What problem does this solve?

I want to properly model the behavior of buttons that have a value from 0 to 1, like the triggers on Joysticks.

What solution would you like?

Add a Triggerlike type (which implies Buttonlike and thus UserInput) which store this data.

Related work

Cut from #548 for scope.

alice-i-cecile commented 1 month ago

When this is done, update button_value to more accurately reflect the values of triggers when used as virtual axes.