Skip to content

Commit 05665ce

Browse files
nondebugdtor
authored andcommitted
Input: xpad - add support for Amazon Game Controller
The Amazon Luna controller (product name "Amazon Game Controller") behaves like an Xbox 360 controller when connected over USB. Signed-off-by: Matt Reynolds <[email protected]> Reviewed-by: Harry Cutts <[email protected]> Link: https://lore.kernel.org/r/20210429103548.1.If5f9a44cb81e25b9350f7c6c0b3c88b4ecd81166@changeid Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent ac05a8a commit 05665ce

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
@@ -268,6 +268,7 @@ static const struct xpad_device {
268268
{ 0x1689, 0xfd00, "Razer Onza Tournament Edition", 0, XTYPE_XBOX360 },
269269
{ 0x1689, 0xfd01, "Razer Onza Classic Edition", 0, XTYPE_XBOX360 },
270270
{ 0x1689, 0xfe00, "Razer Sabertooth", 0, XTYPE_XBOX360 },
271+
{ 0x1949, 0x041a, "Amazon Game Controller", 0, XTYPE_XBOX360 },
271272
{ 0x1bad, 0x0002, "Harmonix Rock Band Guitar", 0, XTYPE_XBOX360 },
272273
{ 0x1bad, 0x0003, "Harmonix Rock Band Drumkit", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
273274
{ 0x1bad, 0x0130, "Ion Drum Rocker", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
@@ -440,6 +441,7 @@ static const struct usb_device_id xpad_table[] = {
440441
XPAD_XBOX360_VENDOR(0x15e4), /* Numark X-Box 360 controllers */
441442
XPAD_XBOX360_VENDOR(0x162e), /* Joytech X-Box 360 controllers */
442443
XPAD_XBOX360_VENDOR(0x1689), /* Razer Onza */
444+
XPAD_XBOX360_VENDOR(0x1949), /* Amazon controllers */
443445
XPAD_XBOX360_VENDOR(0x1bad), /* Harminix Rock Band Guitar and Drums */
444446
XPAD_XBOX360_VENDOR(0x20d6), /* PowerA Controllers */
445447
XPAD_XBOXONE_VENDOR(0x20d6), /* PowerA Controllers */

0 commit comments

Comments
 (0)