Closed umut-sahin closed 3 months ago
Hmm. Can you make a minimal reproduction for me?
It seems to be due to the ordering of systems :sweat:
The solution was easy, but it can be very confusing when you first encounter it.
Any reason why updating the action state is done in PreUpdate
instead of First
?
Any reason why updating the action state is done in PreUpdate instead of First?
Bevy's input information isn't available until then IIRC.
Ah I see, okay then I'll be careful about that from now on :+1:
Thanks for the help Alice, you're the best :raised_hands:
Version
v0.13.3
Operating system & version
Linux
What you did
What you expected to happen
I was expecting to see:
What actually happened
I'm seeing:
Additional information
I'm usually using
.just_pressed(...)
to perform actions in the UI immediately (e.g., pressing escape to go back or enter to select). But, for some reason,.just_pressed(...)
is always returning false.What's even worse is, it works in some runs and doesn't in others. It's not consistent.
It could be due to the way I use the library so I'm open to suggestions about fixing it.
Here is the branch it started happening: https://github.com/umut-sahin/mythmallow/tree/localization
And here are the relative bits:
just_pressed
calls work properly, in some runs...)Thanks and let me know if you need anything else!