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

Upgrade to leafwing 0.15 #575

Merged
merged 5 commits into from
Aug 10, 2024
Merged

Upgrade to leafwing 0.15 #575

merged 5 commits into from
Aug 10, 2024

Conversation

cBournhonesque
Copy link
Owner

@cBournhonesque cBournhonesque commented Aug 10, 2024

The main change is that leafwing handles correctly inputs in FixedUpdate: even if FixedUpdate doesn't run in a frame or runs twice, the input ticks correctly, so we can use JustPressed and JustReleased in FixedUpdate.

TODO:

  • verify that rollbacks work correctly with the change? are we still populating the inputs correctly? The avian example seems to have a lot of rollbacks
    EDIT: actually this seems related to host-server, not to inputs
  • the spaceships examples also has quite a lot of rollbacks
    EDIT: this also happens in main

@cBournhonesque cBournhonesque added the A-Input Related to handling user inputs label Aug 10, 2024
@cBournhonesque cBournhonesque merged commit 61fb8f0 into main Aug 10, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Input Related to handling user inputs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant