I added a bevy_ui button to my game, wired it up to an action I wanted triggered onjust_pressed, and the action repeats every frame as though I were calling pressed. I have a branch out that updates the ui_driven_actions example to showcase this bug by adding a jump button. The branch can be found here (the branch name is misleading, I haven't fixed this).
Additional information
In my efforts to find a fix, I decided that either InputKind needs a new entry and the UI interaction API needs an overhaul, or a small hack needs to get thrown in update_action_state, or something else entirely. After some discussion, it looks like "something else entirely", possibly based on #483, seems to be the preference.
Version
0.13.3
Operating system & version
Windows 10
Problem and repro
I added a
bevy_ui
button to my game, wired it up to an action I wanted triggered onjust_pressed
, and the action repeats every frame as though I were callingpressed
. I have a branch out that updates theui_driven_actions
example to showcase this bug by adding a jump button. The branch can be found here (the branch name is misleading, I haven't fixed this).Additional information
In my efforts to find a fix, I decided that either
InputKind
needs a new entry and the UI interaction API needs an overhaul, or a small hack needs to get thrown inupdate_action_state
, or something else entirely. After some discussion, it looks like "something else entirely", possibly based on #483, seems to be the preference.