Module: wine Branch: master Commit: 33a3726a051c2de1ca86717a325487bae92db1fa URL: https://gitlab.winehq.org/wine/wine/-/commit/33a3726a051c2de1ca86717a325487b...
Author: Nell Hardcastle nell@dev-nell.com Date: Sun Nov 19 09:25:22 2023 -0800
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; }