Skip to content

Commit e7647cb

Browse files
Artewar67dtor
authored andcommitted
Input: xpad - add support for Machenike G5 Pro Controller
Add VID and PID to the xpad_device and VID to the xpad_table to allow driver to use Machenike G5 Pro Controller, which is XTYPE_XBOX360 compatible in Xinput mode. Signed-off-by: Kirill Artemev <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 0774d19 commit e7647cb

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
@@ -332,6 +332,7 @@ static const struct xpad_device {
332332
{ 0x20d6, 0x2001, "BDA Xbox Series X Wired Controller", 0, XTYPE_XBOXONE },
333333
{ 0x20d6, 0x2009, "PowerA Enhanced Wired Controller for Xbox Series X|S", 0, XTYPE_XBOXONE },
334334
{ 0x20d6, 0x281f, "PowerA Wired Controller For Xbox 360", 0, XTYPE_XBOX360 },
335+
{ 0x2345, 0xe00b, "Machenike G5 Pro Controller", 0, XTYPE_XBOX360 },
335336
{ 0x24c6, 0x5000, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
336337
{ 0x24c6, 0x5300, "PowerA MINI PROEX Controller", 0, XTYPE_XBOX360 },
337338
{ 0x24c6, 0x5303, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 },
@@ -497,6 +498,7 @@ static const struct usb_device_id xpad_table[] = {
497498
XPAD_XBOX360_VENDOR(0x1bad), /* Harmonix Rock Band guitar and drums */
498499
XPAD_XBOX360_VENDOR(0x20d6), /* PowerA controllers */
499500
XPAD_XBOXONE_VENDOR(0x20d6), /* PowerA controllers */
501+
XPAD_XBOX360_VENDOR(0x2345), /* Machenike Controllers */
500502
XPAD_XBOX360_VENDOR(0x24c6), /* PowerA controllers */
501503
XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA controllers */
502504
XPAD_XBOX360_VENDOR(0x2563), /* OneXPlayer Gamepad */

0 commit comments

Comments
 (0)