https://bugs.winehq.org/show_bug.cgi?id=53665
Bug ID: 53665 Summary: rawinput: Gamepad input lost after disconnect/reconnect Product: Wine Version: 7.17 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 Assignee: wine-bugs@winehq.org Reporter: achurch+wine@achurch.org Regression SHA1: 8962ec5a83286488da6f839ceba3c39ad1cf00b3 Distribution: ---
Since Wine 7.10 (at least on Linux), when a gamepad is disconnected and subsequently reconnected, a running program accessing that gamepad using the rawinput interface can no longer receive input from the gamepad (the gamepad is effectively lost). Testing indicates that GetRawInputDeviceInfo() on the device after reconnect fails with error 6 (invalid handle), preventing detection of the reconnect.
git bisect blames 8962ec5a, which broke gamepad input completely (the gamepad is never detected by the application). 4c584fe7 fixes initial detection, but the gamepad is lost after a disconnect/reconnect cycle.
https://bugs.winehq.org/show_bug.cgi?id=53665
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rbernon@codeweavers.com
--- Comment #1 from Rémi Bernon rbernon@codeweavers.com --- Hi, do you have a test program to reproduce the issue?
Could you attach the output after setting WINEDEBUG environment variable to +pid,+rawinput,+hid,+plugplay ?
https://bugs.winehq.org/show_bug.cgi?id=53665
--- Comment #2 from Andrew Church achurch+wine@achurch.org --- Created attachment 73077 --> https://bugs.winehq.org/attachment.cgi?id=73077 WINEDEBUG log from test program
I've inserted comments into the log indicating when the gamepad was disconnected and reconnected.