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

Macro Restart and UI Fixes #977

Merged
merged 3 commits into from
Apr 22, 2024
Merged

Conversation

FeralAI
Copy link
Contributor

@FeralAI FeralAI commented Apr 17, 2024

The macro logic was processing macro inputs into gamepad state prior to checking if the macro needed to be reset. This resulted in repeating macros missing applying gamepad state at the end of the macro. Swapping the check for resetting the macro to before the gamepad inputs are applied and creating a restart() method solves this issue.

Also fixed an issue on the macro config page when adding and deleting macro actions. The deleted lines weren't being filtered out, causing no console errors but preventing any changes to the macro actions array. Fixed up the React key errors in the console for this page as well.

Addresses #975 & #976

@FeralAI FeralAI changed the title Macro Restart Fix Macro Restart and UI Fixes Apr 17, 2024
Copy link
Contributor

@arntsonl arntsonl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@arntsonl arntsonl merged commit ec6a0af into OpenStickCommunity:main Apr 22, 2024
32 checks passed
@FeralAI FeralAI deleted the bugfix/macros branch April 22, 2024 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants