Linux Input/HID development
 help / color / mirror / Atom feed
* [PATCH 3/4] xpad.c - support for xbox360 wireless receiver
@ 2007-06-03 14:10 Jan Kratochvil
  2007-06-03 15:37 ` Brian Magnuson
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Kratochvil @ 2007-06-03 14:10 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-input, Brian Magnuson

Hi,
   this one is tricky because I can't test it.
Brian, there is something I don't understand in your previous patch concerning 
this issue. What is reported data length for wireless receiver when it is sending 
its status report? I thought you are trying to ignore packets about headset 
connection. But it is not working the same way for wired device. In data[1] is 
actual length of packet (20).
Please test this patch (and the previous 2).
Thanks

Author: Brian Magnuson <bdmagnuson@gmail.com>

Device ids for xbox360 wireless receiver.

Signed-off-by: Jan Kratochvil <honza@jikos.cz>
---
  drivers/input/joystick/xpad.c |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
index 15f9877..1651950 100644
--- a/drivers/input/joystick/xpad.c
+++ b/drivers/input/joystick/xpad.c
@@ -137,6 +137,7 @@ static const struct xpad_device {
  	{ 0x12ab, 0x8809, "Xbox DDR dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
  	{ 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 },
+	{ 0x045e, 0x0719, "Microsoft X-Box 360 wireless receiver", MAP_DPAD_TO_AXES, 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 }
  };
@@ -179,6 +180,7 @@ 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(0x045e, 0x0719, 129) },	/* X-Box 360 wireless receiver */
  	{ }
  };

-- 
1.4.3.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-06-03 17:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-03 14:10 [PATCH 3/4] xpad.c - support for xbox360 wireless receiver Jan Kratochvil
2007-06-03 15:37 ` Brian Magnuson
2007-06-03 15:53   ` Brian Magnuson
2007-06-03 16:23     ` Jan Kratochvil
     [not found]       ` <bafd4ab0706031003n23c30e1ah3fdf82bf0e586aa8@mail.gmail.com>
2007-06-03 17:03         ` Fwd: " Brian Magnuson
2007-06-03 17:54           ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox