Module: wine Branch: master Commit: 173ed7e61b5b80ccd4d268e80c5c15f9fb288aa0 URL: https://gitlab.winehq.org/wine/wine/-/commit/173ed7e61b5b80ccd4d268e80c5c15f...
Author: Rémi Bernon rbernon@codeweavers.com Date: Sun Jan 14 12:06:23 2024 +0100
winebus: Prefer hidraw backends for DS4 and DS5 gamepads.
---
dlls/winebus.sys/main.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/winebus.sys/main.c b/dlls/winebus.sys/main.c index b19b1f1cb96..b0252b438ea 100644 --- a/dlls/winebus.sys/main.c +++ b/dlls/winebus.sys/main.c @@ -412,6 +412,9 @@ static BOOL is_hidraw_enabled(WORD vid, WORD pid)
if (check_bus_option(L"DisableHidraw", FALSE)) return FALSE;
+ if (is_dualshock4_gamepad(vid, pid)) prefer_hidraw = TRUE; + if (is_dualsense_gamepad(vid, pid)) prefer_hidraw = TRUE; + RtlInitUnicodeString(&str, L"EnableHidraw"); if (!NtQueryValueKey(driver_key, &str, KeyValuePartialInformation, info, sizeof(buffer) - sizeof(WCHAR), &size))