[PATCH 2/4] winebus.sys: Pretend that SDL and IOHID devices have one interface.
Rémi Bernon
rbernon at codeweavers.com
Fri Sep 10 02:19:54 CDT 2021
As we're unable to figure the interface number, unlike the UDEV bus
which usually always is.
This will make sure the devices will be reported a bit more consistencly
between buses, and for instance that the XBox controllers all have the
&MI_00 suffix to match them in winexinput.inf.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
dlls/winebus.sys/bus_iohid.c | 1 -
dlls/winebus.sys/bus_sdl.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/dlls/winebus.sys/bus_iohid.c b/dlls/winebus.sys/bus_iohid.c
index 3df60a1b516..61758304837 100644
--- a/dlls/winebus.sys/bus_iohid.c
+++ b/dlls/winebus.sys/bus_iohid.c
@@ -293,7 +293,6 @@ static void handle_DeviceMatchingCallback(void *context, IOReturn result, void *
struct device_desc desc =
{
.busid = busidW,
- .input = -1,
.serial = {'0','0','0','0',0},
};
struct platform_private *private;
diff --git a/dlls/winebus.sys/bus_sdl.c b/dlls/winebus.sys/bus_sdl.c
index 80252e7e6b1..ccaac6d9d94 100644
--- a/dlls/winebus.sys/bus_sdl.c
+++ b/dlls/winebus.sys/bus_sdl.c
@@ -737,7 +737,6 @@ static void sdl_add_device(unsigned int index)
struct device_desc desc =
{
.busid = sdl_busidW,
- .input = -1,
.serial = {'0','0','0','0',0},
};
struct platform_private *private;
--
2.33.0
More information about the wine-devel
mailing list