From: Tuomas Räsänen tuomas.rasanen@opinsys.fi
This makes hidraw backend to be used for all hidraw devices which are NOT input devices as well.
To be more precise, hidraw devices are created by HID subsystem, but HID subsystem might also use other subsystems to create more devices as well. In the most common scenario, for an HID input device, HID causes input subsystem to create input event devices too.
For such scenario, the behavior is not not changed.
This commit just causes hidraw backend to be used for all NON-input hidraw devices.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56450 --- 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 1d3b07477c3..fe470518217 100644 --- a/dlls/winebus.sys/main.c +++ b/dlls/winebus.sys/main.c @@ -414,6 +414,9 @@ static BOOL is_hidraw_enabled(const struct device_desc *const desc)
if (check_bus_option(L"DisableHidraw", FALSE)) return FALSE;
+ if (!desc->has_hid_input_relative) + prefer_hidraw = TRUE; + if (!check_bus_option(L"Enable SDL", 1) && check_bus_option(L"DisableInput", 0)) prefer_hidraw = TRUE;