Input: xpad - treat Qanba controllers as Xbox360 controllers
authorPierre-Loup A. Griffais <pgriffais@valvesoftware.com>
Fri, 24 Mar 2023 17:40:39 +0000 (10:40 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 2 Apr 2023 03:26:06 +0000 (20:26 -0700)
They act that way in PC mode.

Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Pierre-Loup A. Griffais <pgriffais@valvesoftware.com>
Signed-off-by: Vicki Pfau <vi@endrift.com>
Link: https://lore.kernel.org/r/20230324040446.3487725-2-vi@endrift.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c

index 49ae963e5f9df12e7438ff6d7ddde2fee8af6e5f..c2c688156b2e316b5914b24dac2fbdf1eb379999 100644 (file)
@@ -493,6 +493,7 @@ static const struct usb_device_id xpad_table[] = {
        XPAD_XBOXONE_VENDOR(0x24c6),            /* PowerA Controllers */
        XPAD_XBOX360_VENDOR(0x2563),            /* OneXPlayer Gamepad */
        XPAD_XBOX360_VENDOR(0x260d),            /* Dareu H101 */
+       XPAD_XBOX360_VENDOR(0x2c22),            /* Qanba Controllers */
        XPAD_XBOX360_VENDOR(0x2dc8),            /* 8BitDo Pro 2 Wired Controller */
        XPAD_XBOXONE_VENDOR(0x2dc8),            /* 8BitDo Pro 2 Wired Controller for Xbox */
        XPAD_XBOXONE_VENDOR(0x2e24),            /* Hyperkin Duke X-Box One pad */