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 "Menu Open Start Press" for 2/3 speed #714

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

austintraver
Copy link
Collaborator

In the current version of the Ultimate Training Modpack, trying hold the (+) button to open the modpack menu will fail when Speed is set to 2/3 in training mode.

This PR changes the logic for how the (+) input is processed, in order to fix this issue.

Unlike 1/2 and 1/4 speed, the 2/3 speed is not a cleanly divisible framerate. As a result, it is necessary to wait for 2 consecutive frames that the (+) button is known to have been released. This is necessary in order to prevent inputs from being processed incorrectly. Until 2 consecutive frames have passed, we're not sure if the user actually released the button, (as we often overwrite the (+) button press in the logic of the code itself)

@austintraver austintraver requested a review from jugeeya as a code owner January 5, 2025 22:59
@austintraver austintraver requested a review from xhudaman January 10, 2025 07:04
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.

1 participant