From 33a3726a051c2de1ca86717a325487bae92db1fa Mon Sep 17 00:00:00 2001 From: Nell Hardcastle Date: Sun, 19 Nov 2023 09:25:22 -0800 Subject: [PATCH] winebus.sys: Identify DualSense Edge as a DualSense controller. The DualSense Edge implements extra features (haptics and adaptive triggers) in the same way as the DualSense. --- dlls/winebus.sys/unixlib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/winebus.sys/unixlib.c b/dlls/winebus.sys/unixlib.c index 74b4992f07b..82eab3717ca 100644 --- a/dlls/winebus.sys/unixlib.c +++ b/dlls/winebus.sys/unixlib.c @@ -72,7 +72,9 @@ BOOL is_dualshock4_gamepad(WORD vid, WORD pid) BOOL is_dualsense_gamepad(WORD vid, WORD pid) { - if (vid == 0x054c && pid == 0x0ce6) return TRUE; + if (vid != 0x054c) return FALSE; + if (pid == 0x0ce6) return TRUE; /* DualSense */ + if (pid == 0x0df2) return TRUE; /* DualSense Edge */ return FALSE; } -- 2.11.4.GIT