]> git.baikalelectronics.ru Git - kernel.git/commit
Input: xpad - add support for Xbox 360 gamepad
authorJan Kratochvil <honza@jikos.cz>
Wed, 9 May 2007 04:27:37 +0000 (00:27 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Tue, 10 Jul 2007 04:35:15 +0000 (00:35 -0400)
commit5e4314c0b2e24bb44aa8630d040f494d919878fb
tree0ca1ade773b9b1f6db1f49bd0c60084753eda9ef
parent35e57ca43b66968e8eedebb4b2733c3d6abdfc85
Input: xpad - add support for Xbox 360 gamepad

Xbox 360 gamepad is slightly different then the previous model so it has
its own version of process_packet method. Detection of this new device
relies on USB_DEVICE_INTERFACE_PROTOCOL macro. This device got vendor
specific subclass so it can't be matched with USB_INTERFACE_INFO and
we need only one interface protocol from four availaible. It means
USB_DEVICE can't be used either.

Added xpad360_btn structure with additional buttons for x360 gamepad.
Added xtype into xpad_device structure to distinguish between different
types of xbox devices.

Signed-off-by: Jan Kratochvil <honza@jikos.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/joystick/xpad.c