diff mbox

[rfc] xbox360 Big-button controller support for xpad.c, take 3

Message ID abc933c50910311305t20da8da8p46d1a0692f914a9f@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

James Mastros Oct. 31, 2009, 8:05 p.m. UTC
None
diff mbox

Patch

--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -94,6 +94,7 @@ 
 #define XTYPE_XBOX360     1
 #define XTYPE_XBOX360W    2
 #define XTYPE_UNKNOWN     3
+#define XTYPE_XBOX360BB   4

 static int dpad_to_buttons;
 module_param(dpad_to_buttons, bool, S_IRUGO);
@@ -147,6 +148,7 @@  static const struct xpad_device {
 	{ 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 },
+	{ 0x045e, 0x02a0, "Microsoft X-Box 360 Big Button IR reciever",