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

Disable keyboard controller input while swkbd is open (foreground) #6646

Merged
merged 3 commits into from May 14, 2024

Conversation

TSRBerry
Copy link
Member

@TSRBerry TSRBerry commented Apr 10, 2024

This PR fixes #5625 by disabling the keyboard controller input while the swkbd applet is open.

Warning

This does not prevent keyboard controller inputs while the inline keyboard is active.


Thank you @music-discussion for figuring out the bug and describing it in the comments! It saved me quite some time and allowed me to create this PR quickly.

@TSRBerry TSRBerry added gui Related to Ryujinx.Ui fix Fix something applet Related to system/firmware applets labels Apr 10, 2024
@ryujinx-mako ryujinx-mako bot requested review from AcK77, emmauss and a team April 10, 2024 22:35
@TSRBerry

This comment was marked as resolved.

@TSRBerry TSRBerry marked this pull request as draft April 10, 2024 23:20
@TSRBerry TSRBerry changed the title Ava: Disable keyboard controller input while swkbd is open (foreground) Disable keyboard controller input while swkbd is open (foreground) Apr 12, 2024
@TSRBerry TSRBerry marked this pull request as ready for review April 12, 2024 22:17
@TSRBerry TSRBerry added the input Related to Ryujinx.Input or Ryujinx.Input.SDL2 label Apr 12, 2024
Copy link
Member

@riperiperi riperiperi 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, though there may be a more fundamental problem here. We probably want all input to be invisible to an application while an applet is in the foreground in general. I think this will only really be an issue when we start doing LLE applets, but it's still important to consider.

src/Ryujinx.Input/IGamepadDriver.cs Outdated Show resolved Hide resolved
src/Ryujinx/Input/AvaloniaKeyboardDriver.cs Outdated Show resolved Hide resolved
@TSRBerry TSRBerry requested a review from gdkchan April 16, 2024 15:53
@ryujinx-mako ryujinx-mako bot requested a review from a team April 16, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
applet Related to system/firmware applets fix Fix something gui Related to Ryujinx.Ui input Related to Ryujinx.Input or Ryujinx.Input.SDL2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Unable to play Stardew Valley because Software Keyboard prompt will not close
4 participants