1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

winebus: Prefer hidraw backends for DS4 and DS5 gamepads.

This commit is contained in:
Rémi Bernon 2024-01-14 12:06:23 +01:00 committed by Alexandre Julliard
parent 13d8571b08
commit 173ed7e61b

View file

@ -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))