winebus: Prefer hidraw backends for DS4 and DS5 gamepads.
This commit is contained in:
parent
13d8571b08
commit
173ed7e61b
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue