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 PassThroughInputManager not always releasing input #6347

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

frenzibyte
Copy link
Member

In order for a PassThroughInputManager to receive the release event of any input at any time, it must've seen the corresponding press event, even if the press was performed while UseParentInput is turned off.

This behaviour doesn't really make sense, and is broken in osu! right now when there are drawables in front of gameplay that block input (e.g. pause overlay handling Space key as the select action while playing mania wherein Space corresponds to the special key action).

Before:

CleanShot.2024-08-02.at.10.50.48.mp4

After:

CleanShot.2024-08-02.at.10.52.49.mp4

(key is stuck in "Before" because pause overlay handled the space key press to select the continue button, but it's fixed in "After")

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.

Makes sense to me. This is how it was originally. Not sure about the two sync methods being split out now, but it is what it is I guess.

@smoogipoo smoogipoo merged commit 4779e1b into ppy:master Aug 2, 2024
19 of 21 checks passed
@frenzibyte frenzibyte deleted the fix-ptim-not-always-releasing branch August 2, 2024 10:11
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.

2 participants