Skip to content

Commit c1ba083

Browse files
flibitijibibodtor
authored andcommitted
Input: xpad - add GPD Win 2 Controller USB IDs
GPD Win 2 Website: http://www.gpd.hk/gpdwin2.asp Tested on a unit from the first production run sent to Indiegogo backers Signed-off-by: Ethan Lee <[email protected]> Cc: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 22a844b commit c1ba083

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/input/joystick/xpad.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ static const struct xpad_device {
125125
u8 mapping;
126126
u8 xtype;
127127
} xpad_device[] = {
128+
{ 0x0079, 0x18d4, "GPD Win 2 Controller", 0, XTYPE_XBOX360 },
128129
{ 0x044f, 0x0f00, "Thrustmaster Wheel", 0, XTYPE_XBOX },
129130
{ 0x044f, 0x0f03, "Thrustmaster Wheel", 0, XTYPE_XBOX },
130131
{ 0x044f, 0x0f07, "Thrustmaster, Inc. Controller", 0, XTYPE_XBOX },
@@ -411,6 +412,7 @@ static const signed short xpad_abs_triggers[] = {
411412

412413
static const struct usb_device_id xpad_table[] = {
413414
{ USB_INTERFACE_INFO('X', 'B', 0) }, /* X-Box USB-IF not approved class */
415+
XPAD_XBOX360_VENDOR(0x0079), /* GPD Win 2 Controller */
414416
XPAD_XBOX360_VENDOR(0x044f), /* Thrustmaster X-Box 360 controllers */
415417
XPAD_XBOX360_VENDOR(0x045e), /* Microsoft X-Box 360 controllers */
416418
XPAD_XBOXONE_VENDOR(0x045e), /* Microsoft X-Box One controllers */

0 commit comments

Comments
 (0)