[PATCH] Input: xpad - add 8BitDo Ultimate 3-mode PID 201b

Antoni Marzec <[email protected]>
Newsgroups gmane.linux.kernel.input,gmane.linux.kernel
Message-ID <MI2P293MB04481F483D699374C768497BBFA12@MI2P293MB0448.ITAP293.PROD.OUTLOOK.COM>
The 8BitDo Ultimate 3-mode Controller for Xbox presents USB ID
2dc8:201b during normal 2.4 GHz operation.

There is currently no device-specific entry for this PID, so xpad
falls back to the "Generic X-Box pad" entry without MAP_SHARE_BUTTON.
As a result, pressing the Share button produces no evdev event.

The receiver transiently enumerates as 2dc8:200f while the wireless
connection is being established or has been lost. This PID already
has a device-specific xpad entry with MAP_SHARE_BUTTON. Once the
controller connects, the device re-enumerates as 2dc8:201b.

Add a device entry for 2dc8:201b with MAP_SHARE_BUTTON to expose the
Share button during normal operation.

Signed-off-by: Antoni Marzec <[email protected]>
---
 drivers/input/joystick/xpad.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index 2da0b7f17..7641254f7 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -372,6 +372,7 @@ static const struct xpad_device {
 	{ 0x2993, 0x2001, "TECNO Pocket Go", 0, XTYPE_XBOX360 },
 	{ 0x2dc8, 0x2000, "8BitDo Pro 2 Wired Controller fox Xbox", 0, XTYPE_XBOXONE },
 	{ 0x2dc8, 0x200f, "8BitDo Ultimate 3-mode Controller for Xbox", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
+	{ 0x2dc8, 0x201b, "8BitDo Ultimate 3-mode Controller for Xbox", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
 	{ 0x2dc8, 0x3106, "8BitDo Ultimate Wireless / Pro 2 Wired Controller", 0, XTYPE_XBOX360 },
 	{ 0x2dc8, 0x3109, "8BitDo Ultimate Wireless Bluetooth", 0, XTYPE_XBOX360 },
 	{ 0x2dc8, 0x310a, "8BitDo Ultimate 2C Wireless Controller", 0, XTYPE_XBOX360 },
-- 
2.55.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.