Skip to content

Fix: restore mouse and controls after background-session reattach#593

Open
Xnick417x wants to merge 1 commit into
WinNative-Emu:mainfrom
Xnick417x:fix-input-reconnect
Open

Fix: restore mouse and controls after background-session reattach#593
Xnick417x wants to merge 1 commit into
WinNative-Emu:mainfrom
Xnick417x:fix-input-reconnect

Conversation

@Xnick417x

Copy link
Copy Markdown
Collaborator

On reattach the guest keeps running but never resends its init handshake, so the fresh WinHandler dropped all mouse/keyboard input; mark it initialized to adopt the guest's live state. Free the old handler's socket without tearing down its fake-input writers/rings (stopForReattach), and skip deleting the guest's live event0..3 nodes so gamepad/on-screen controls survive.

On reattach the guest keeps running but never resends its init handshake, so the fresh WinHandler dropped all mouse/keyboard input; mark it initialized to adopt the guest's live state. Free the old handler's socket without tearing down its fake-input writers/rings (stopForReattach), and skip deleting the guest's live event0..3 nodes so gamepad/on-screen controls survive.
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