DualShock 4 (bluetooth) XInput not recognized not working

Questions about Wine on Linux
Locked
User avatar
succodifrutta
Level 2
Level 2
Posts: 21
Joined: Sat Mar 28, 2020 5:26 am

DualShock 4 (bluetooth) XInput not recognized not working

Post by succodifrutta »

I'm using wine 9.16-1 (ArchLinux).
The DualShock 4 is connected via bluetooth.
Wine does not recognizes it as XInput, but only as DInput.
This causes games not recognizing the controller at all.

Instead, If I force the SDL input, then the DualShcok 4 is presented as a XBox controller and recognized as XInput also.

Code: Select all

SDL_JOYSTICK_DEVICE=/dev/input/js0 wine control
Image
Image

Interestingly, when using SDL_JOYSTICK_DEVICE=/dev/input/js0, I get two devices recognized by SDL2 Gamepad Mapper:

Code: Select all

SDL_JOYSTICK_DEVICE=/dev/input/js0 sdl2-gamepad-mapper
Image
User avatar
succodifrutta
Level 2
Level 2
Posts: 21
Joined: Sat Mar 28, 2020 5:26 am

[SOLVED] DualShock 4 (bluetooth) XInput not recognized not working

Post by succodifrutta »

SOLVED:

Code: Select all

$ wine reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\winebus" /v "DisableHidraw" /t REG_DWORD /d 1
eg.:

Code: Select all

$ grep -A9 -B4 Hidraw /SOMEPATH/TO/SOME/$WINEPREFIX/system.reg 

[System\\CurrentControlSet\\Services\\winebus] 1727104857
#time=1db0dcc30579482
"Description"="Wine HID bus driver"
"DisableHidraw"=dword:00000001
"DisplayName"="Wine HID bus"
"ErrorControl"=dword:00000001
"Group"="WinePlugPlay"
"ImagePath"="C:\\windows\\system32\\drivers\\winebus.sys"
"ObjectName"="LocalSystem"
"PreshutdownTimeout"=dword:0002bf20
"Start"=dword:00000003
"Type"=dword:00000001

Thanks to: https://selfmadepenguin.wordpress.com/2 ... -problems/
User avatar
succodifrutta
Level 2
Level 2
Posts: 21
Joined: Sat Mar 28, 2020 5:26 am

Re: DualShock 4 (bluetooth) XInput not recognized not working

Post by succodifrutta »

Please mods, edit the title in order to add [SOLVED], thanks.
Locked