Input: xpad - add support for Xbox One controllers
authorTed Mielczarek <ted@mielczarek.org>
Fri, 8 Aug 2014 18:21:59 +0000 (11:21 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 26 Nov 2017 13:51:08 +0000 (13:51 +0000)
commit8e6535216c719085f1eea7a61c7512339f79a8fc
tree6ca4615b2b1a025764cbeee1af413884bdffb8b9
parentda2a3dada9ea15469bdfd06350d055aa8692a27c
Input: xpad - add support for Xbox One controllers

commit 1a48ff81b3912be5fadae3fafde6c2f632246a4c upstream.

Xbox One controllers require an initialization message to start sending
data, so xpad_init_output becomes a required function. The Xbox One
controller does not have LEDs like the Xbox 360 controller, so that
functionality is not implemented. The format of messages controlling rumble
is currently undocumented, so rumble support is not yet implemented.

Note that Xbox One controller advertises three interfaces with the same
interface class, subclass and protocol, so we have to also match against
interface number.

Signed-off-by: Ted Mielczarek <ted@mielczarek.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/input/joystick/xpad.c