https://bugs.winehq.org/show_bug.cgi?id=51745
--- Comment #7 from RĂ©mi Bernon rbernon@codeweavers.com --- I've left some XInput test running for a while with a PS4 controller and didn't see any disconnection.
Although I found a few other issues that I intend to send patches for before next release, I think this specific problem should be fixed now and if there's something more another bug could be opened.