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

Fix action diffing #580

Merged
merged 23 commits into from
Aug 8, 2024
Merged

Fix action diffing #580

merged 23 commits into from
Aug 8, 2024

Conversation

alice-i-cecile
Copy link
Contributor

@alice-i-cecile alice-i-cecile commented Aug 7, 2024

Fixes #565.

The actual fixes here are pretty small, and mostly incidental to action-diffing: ActionState::pressed and just_pressed were returning true for uninitialized data. Overall, the tests were simply wrong, and expecting bizarre, extremely verbose action-diffs (buttonlike inputs having values, axislike inputs being released...).

The tests are substantially simpler now, there's unit tests for action-diffing, all of the action-diffing code lives together, and now there's some nice set_value and set_axis_pair helper methods!

@alice-i-cecile alice-i-cecile added the bug Something isn't working label Aug 7, 2024
@alice-i-cecile alice-i-cecile marked this pull request as ready for review August 7, 2024 23:36
@alice-i-cecile alice-i-cecile added the code-quality Make the code faster or prettier label Aug 7, 2024
@alice-i-cecile alice-i-cecile enabled auto-merge (squash) August 7, 2024 23:52
@alice-i-cecile alice-i-cecile merged commit d75d830 into main Aug 8, 2024
4 checks passed
@alice-i-cecile alice-i-cecile deleted the action-diffing-again branch August 8, 2024 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working code-quality Make the code faster or prettier
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Action diffing broke with the trait refactor
1 participant