All pastes #984890 Raw Edit

USB IDs for xpad in linux-2.6.25

public diff v1 · immutable
·published 2008-04-14 17:12 UTC
rendered paste body
diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.cindex 6e9d75b..fcfcedb 100644--- a/drivers/input/joystick/xpad.c+++ b/drivers/input/joystick/xpad.c@@ -9,6 +9,7 @@  *               2005 Dominic Cerquetti <binary1230@yahoo.com>  *               2006 Adam Buchbinder <adam.buchbinder@gmail.com>  *               2007 Jan Kratochvil <honza@jikos.cz>+ *               2007 Corbin Simpson <MostAwesomeDude@gmail.com>  *  * This program is free software; you can redistribute it and/or  * modify it under the terms of the GNU General Public License as@@ -136,8 +137,10 @@ static const struct xpad_device { 	{ 0x0f30, 0x8888, "BigBen XBMiniPad Controller", MAP_DPAD_TO_AXES, XTYPE_XBOX }, 	{ 0x102c, 0xff0c, "Joytech Wireless Advanced Controller", MAP_DPAD_TO_AXES, XTYPE_XBOX }, 	{ 0x12ab, 0x8809, "Xbox DDR dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },+	{ 0x1430, 0x4748, "RedOctane Guitar Hero X-plorer", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 }, 	{ 0x1430, 0x8888, "TX6500+ Dance Pad (first generation)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX }, 	{ 0x045e, 0x028e, "Microsoft X-Box 360 pad", MAP_DPAD_TO_AXES, XTYPE_XBOX360 },+	{ 0x1bad, 0x0003, "Harmonix Rock Band Drumkit", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 }, 	{ 0xffff, 0xffff, "Chinese-made Xbox Controller", MAP_DPAD_TO_AXES, XTYPE_XBOX }, 	{ 0x0000, 0x0000, "Generic X-Box pad", MAP_DPAD_UNKNOWN, XTYPE_XBOX } };@@ -180,6 +183,8 @@ static const signed short xpad_abs_pad[] = { static struct usb_device_id xpad_table [] = { 	{ USB_INTERFACE_INFO('X', 'B', 0) },	/* X-Box USB-IF not approved class */ 	{ USB_DEVICE_INTERFACE_PROTOCOL(0x045e, 0x028e, 1) },	/* X-Box 360 controller */+	{ USB_DEVICE_INTERFACE_PROTOCOL(0x1430, 0x4748, 1) },	/* Guitar Hero X-plorer */+	{ USB_DEVICE_INTERFACE_PROTOCOL(0x1bad, 0x0003, 1) },	/* Rock Band Drums */ 	{ } };