From 1354136e468ef6c4a51a364a198f1e3cab12bddf Mon Sep 17 00:00:00 2001 From: artewar67 Date: Tue, 14 May 2024 07:40:52 +0500 Subject: [PATCH 1/3] Add support for Machenike G5 Pro controller --- xpad.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xpad.c b/xpad.c index 43985dd..9946ecc 100644 --- a/xpad.c +++ b/xpad.c @@ -389,6 +389,7 @@ static const struct xpad_device { { 0x3285, 0x0614, "Nacon Pro Compact", 0, XTYPE_XBOXONE }, { 0x3767, 0x0101, "Fanatec Speedster 3 Forceshock Wheel", 0, XTYPE_XBOX }, { 0x413d, 0x2104, "Black Shark Green Ghost Gamepad", 0, XTYPE_XBOX360 }, + { 0x2345, 0xe00b, "Machenike G5 Pro controller", 0, XTYPE_XBOX360, QUIRK_360_START_PKT_1 }, { 0xffff, 0xffff, "Chinese-made Xbox Controller", 0, XTYPE_XBOX }, { 0x0000, 0x0000, "Generic X-Box pad", 0, XTYPE_UNKNOWN } }; @@ -531,6 +532,7 @@ static const struct usb_device_id xpad_table[] = { XPAD_XBOX360_VENDOR(0x3285), /* Nacon GC-100 */ XPAD_XBOXONE_VENDOR(0x3285), /* Nacon XBOX Series S/X Controllers */ XPAD_XBOX360_VENDOR(0x413d), /* Black Shark Green Ghost Controller */ + XPAD_XBOX360_VENDOR(0x2345), /* Machenike G5 Pro controller */ { } }; From 455a294c4771b2776c52403461e810b441f12435 Mon Sep 17 00:00:00 2001 From: artewar67 Date: Tue, 14 May 2024 08:29:09 +0500 Subject: [PATCH 2/3] update --- xpad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpad.c b/xpad.c index 9946ecc..8af3c68 100644 --- a/xpad.c +++ b/xpad.c @@ -389,7 +389,7 @@ static const struct xpad_device { { 0x3285, 0x0614, "Nacon Pro Compact", 0, XTYPE_XBOXONE }, { 0x3767, 0x0101, "Fanatec Speedster 3 Forceshock Wheel", 0, XTYPE_XBOX }, { 0x413d, 0x2104, "Black Shark Green Ghost Gamepad", 0, XTYPE_XBOX360 }, - { 0x2345, 0xe00b, "Machenike G5 Pro controller", 0, XTYPE_XBOX360, QUIRK_360_START_PKT_1 }, + { 0x2345, 0xe00b, "Machenike G5 Pro controller", 0, XTYPE_XBOX360 }, { 0xffff, 0xffff, "Chinese-made Xbox Controller", 0, XTYPE_XBOX }, { 0x0000, 0x0000, "Generic X-Box pad", 0, XTYPE_UNKNOWN } }; From d2cb113fc4e8cc66342a58ba0042c7ac7b5c121b Mon Sep 17 00:00:00 2001 From: Kirill Artemev Date: Wed, 15 May 2024 00:04:19 +0500 Subject: [PATCH 3/3] Sort Signed-off-by: Kirill Artemev --- xpad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpad.c b/xpad.c index 8af3c68..4cef7d7 100644 --- a/xpad.c +++ b/xpad.c @@ -347,6 +347,7 @@ static const struct xpad_device { { 0x20d6, 0x2001, "BDA Xbox Series X Wired Controller", 0, XTYPE_XBOXONE }, { 0x20d6, 0x2009, "PowerA Enhanced Wired Controller for Xbox Series X|S", 0, XTYPE_XBOXONE }, { 0x20d6, 0x281f, "PowerA Wired Controller For Xbox 360", 0, XTYPE_XBOX360 }, + { 0x2345, 0xe00b, "Machenike G5 Pro controller", 0, XTYPE_XBOX360 }, { 0x2e24, 0x0652, "Hyperkin Duke X-Box One pad", 0, XTYPE_XBOXONE }, { 0x24c6, 0x5000, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, { 0x24c6, 0x5300, "PowerA MINI PROEX Controller", 0, XTYPE_XBOX360 }, @@ -389,7 +390,6 @@ static const struct xpad_device { { 0x3285, 0x0614, "Nacon Pro Compact", 0, XTYPE_XBOXONE }, { 0x3767, 0x0101, "Fanatec Speedster 3 Forceshock Wheel", 0, XTYPE_XBOX }, { 0x413d, 0x2104, "Black Shark Green Ghost Gamepad", 0, XTYPE_XBOX360 }, - { 0x2345, 0xe00b, "Machenike G5 Pro controller", 0, XTYPE_XBOX360 }, { 0xffff, 0xffff, "Chinese-made Xbox Controller", 0, XTYPE_XBOX }, { 0x0000, 0x0000, "Generic X-Box pad", 0, XTYPE_UNKNOWN } }; @@ -519,6 +519,7 @@ static const struct usb_device_id xpad_table[] = { XPAD_XBOX360_VENDOR(0x1bad), /* Harminix Rock Band Guitar and Drums */ XPAD_XBOX360_VENDOR(0x20d6), /* PowerA Controllers */ XPAD_XBOXONE_VENDOR(0x20d6), /* PowerA Controllers */ + XPAD_XBOX360_VENDOR(0x2345), /* Machenike G5 Pro controller */ XPAD_XBOX360_VENDOR(0x24c6), /* PowerA Controllers */ XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA Controllers */ XPAD_XBOX360_VENDOR(0x2563), /* OneXPlayer Gamepad */ @@ -532,7 +533,6 @@ static const struct usb_device_id xpad_table[] = { XPAD_XBOX360_VENDOR(0x3285), /* Nacon GC-100 */ XPAD_XBOXONE_VENDOR(0x3285), /* Nacon XBOX Series S/X Controllers */ XPAD_XBOX360_VENDOR(0x413d), /* Black Shark Green Ghost Controller */ - XPAD_XBOX360_VENDOR(0x2345), /* Machenike G5 Pro controller */ { } };