[PATCH 6/6] hidclass.sys: Add Sony controllers product string overrides.

Rémi Bernon rbernon at codeweavers.com
Tue Oct 5 02:11:55 CDT 2021


Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 dlls/hidclass.sys/device.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/hidclass.sys/device.c b/dlls/hidclass.sys/device.c
index 80cbcdae59a..29b9215aa22 100644
--- a/dlls/hidclass.sys/device.c
+++ b/dlls/hidclass.sys/device.c
@@ -412,6 +412,7 @@ struct device_strings
 
 static const struct device_strings device_strings[] =
 {
+    /* Microsoft controllers */
     { .id = L"VID_045E&PID_028E", .product = L"Controller (XBOX 360 For Windows)" },
     { .id = L"VID_045E&PID_028F", .product = L"Controller (XBOX 360 For Windows)" },
     { .id = L"VID_045E&PID_02D1", .product = L"Controller (Xbox One For Windows)" },
@@ -424,6 +425,11 @@ static const struct device_strings device_strings[] =
     { .id = L"VID_045E&PID_0B05", .product = L"Controller (Xbox One For Windows)" },
     { .id = L"VID_045E&PID_0B12", .product = L"Controller (Xbox One For Windows)" },
     { .id = L"VID_045E&PID_0B13", .product = L"Controller (Xbox One For Windows)" },
+    /* Sony controllers */
+    { .id = L"VID_054C&PID_05C4", .product = L"Wireless Controller" },
+    { .id = L"VID_054C&PID_09CC", .product = L"Wireless Controller" },
+    { .id = L"VID_054C&PID_0BA0", .product = L"Wireless Controller" },
+    { .id = L"VID_054C&PID_0CE6", .product = L"Wireless Controller" },
 };
 
 static const WCHAR *find_product_string( const WCHAR *device_id )
-- 
2.33.0




More information about the wine-devel mailing list