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.