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 pause input handling in osu! not working like stable #29250

Merged
merged 8 commits into from
Aug 5, 2024

Conversation

frenzibyte
Copy link
Member

@frenzibyte frenzibyte commented Aug 2, 2024

In stable, when you press the resume cursor, if there's a spinner then it's aware that you're currently pressing a key, but if there's a hit circle it does not respond to the press of that key.

This is mimicked here by removing the schedule that was implanted in 4f6c7fe in order to allow gameplay components to see the key press when pressing the resume cursor, but also add a local component somewhere in the osu! playfield to suppress the key press event from reaching any hit circle.

Existing tests were adjusted to acknowledge that pressing on the resume cursor triggers a gameplay press.

@peppy peppy self-requested a review August 2, 2024 11:58
peppy and others added 3 commits August 2, 2024 20:58
Try-finally has a small overhead that's unnecessary in this case given
how small the code block is.
Copy link
Contributor

@smoogipoo smoogipoo left a comment

Choose a reason for hiding this comment

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

Seems ok to me

@smoogipoo smoogipoo merged commit 95aab6c into ppy:master Aug 5, 2024
11 of 13 checks passed
@frenzibyte frenzibyte deleted the fix-pause-in-osu-again branch August 5, 2024 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Holding the button when resuming gameplay doesn't hold the button in gameplay unlike in Stable
3 participants