Rémi Bernon : hidclass.sys: Add Sony controllers product string overrides.
Alexandre Julliard
julliard at winehq.org
Tue Oct 5 15:51:41 CDT 2021
Module: wine
Branch: master
Commit: e9178864a7658471147c2ea71a7863c576a8eeac
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e9178864a7658471147c2ea71a7863c576a8eeac
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Tue Oct 5 09:11:55 2021 +0200
hidclass.sys: Add Sony controllers product string overrides.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 )
More information about the wine-cvs
mailing list