https://bugs.winehq.org/show_bug.cgi?id=56602
Bug ID: 56602 Summary: DualShock 4 controller behaves incorrectly on Darwin with hidraw enabled Product: Wine Version: 9.6 Hardware: x86-64 OS: MacOS Status: UNCONFIRMED Keywords: hardware, regression Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: serves.dovish.0h@icloud.com CC: rbernon@codeweavers.com Regression SHA1: 173ed7e61b5b80ccd4d268e80c5c15f9fb288aa0 Regression SHA1: 173ed7e61b5b80ccd4d268e80c5c15f9fb288aa0 Component: -unknown CC: rbernon@codeweavers.com Keywords: hardware, regression
This may be a duplicate of https://bugs.winehq.org/show_bug.cgi?id=56306, but I’m opening a separate issue because Darwin is affected differently from Linux.
After 173ed7e61b5b80ccd4d268e80c5c15f9fb288aa0, my DualShock 4 controller (model: ZCT1U) behaves incorrectly.
* It is still identified as an xinput controller. * The d-pad is stuck in up-left. * The right stick is treated as the Z axis in dinput and as the triggers in xinput. * The triggers are treated as Rx and Ry in dinput and the right stick in xinput. * Buttons are mapped incorrectly: X = B, circle = X, triangle = Y, square = A, share = L3, options = R3. L3 and R3 on the gamepad do nothing. * Rumble does not work.
Reverting that commit fixes the issue as does disabling hidraw via the registry allows the controller to work again as expected.
System is macOS 14.4.1. Wine is Wine 9.6 from nixpkgs.
--- Comment #1 from Randy Eckenrode serves.dovish.0h@icloud.com --- This was found out playing FFXIV after a Wine update in nixpkgs, but the test was performed using joy.cpl to observe how the gamepad behaved in dinput and xinput.
https://bugs.winehq.org/show_bug.cgi?id=56602
--- Comment #2 from Rémi Bernon rbernon@codeweavers.com --- Is your device connected over bluetooth? Could you please attach a log with the output of `WINEDEBUG=+hid wine winecfg joy.cpl`?
https://bugs.winehq.org/show_bug.cgi?id=56602
Rémi Bernon rbernon@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |c708295ed6de3eca5a5406ed886 | |904fd5c398053 Resolution|--- |FIXED
--- Comment #3 from Rémi Bernon rbernon@codeweavers.com --- I believe this should be fixed after c708295ed6de3eca5a5406ed886904fd5c398053, please reopen if not.
https://bugs.winehq.org/show_bug.cgi?id=56602
--- Comment #4 from Randy Eckenrode serves.dovish.0h@icloud.com --- Sorry about my late response. The battery on my DS4 controller is too old and can’t hold a charge, so I’m using the controller via USB. However, I don’t think that matters now.
I cherry-picked c708295ed6de3eca5a5406ed886904fd5c398053 (and related commits) onto the Wine package in nixpkgs and built it. I can confirm it does resolve the problem. Thank you!
https://bugs.winehq.org/show_bug.cgi?id=56602
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.10.