TheSeekerGame / TheSeeker

Metroidvania game in Bevy
24 stars 6 forks source link

Fix `just_pressed` in `GameTickUpdate` #75

Closed odecay closed 2 weeks ago

odecay commented 2 weeks ago

This pr adapts the pr from LWIM which fixes the behavior of just_pressed and just_released in FixedUpdate https://github.com/Leafwing-Studios/leafwing-input-manager/pull/522 to work with our GameTickUpdate schedule. It relies on a branch of LWIM with an older version of the fix applied to the bevy 0.13 compatible branch, and re-implements the InputManagerPlugin to add the pressed state updating systems to the correct schedules and sets when building.