Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

just_pressed reports incorrectly for UI interactions #496

Open
jnhyatt opened this issue Feb 29, 2024 · 1 comment
Open

just_pressed reports incorrectly for UI interactions #496

jnhyatt opened this issue Feb 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jnhyatt
Copy link
Contributor

jnhyatt commented Feb 29, 2024

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 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.

@alice-i-cecile
Copy link
Contributor

I'd be open to cherrypicking a small hack and doing a point release for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants