]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: xpad - add support for Xbox One controllers
authorTed Mielczarek <ted@mielczarek.org>
Fri, 8 Aug 2014 18:21:59 +0000 (11:21 -0700)
committerJiri Slaby <jslaby@suse.cz>
Tue, 26 May 2015 14:26:57 +0000 (16:26 +0200)
commit9a30c06838feb1263b5cae05e7f871d99e7da94f
tree023c3402fe8c770c7c012df9bef1f42747ff9f6a
parent8452773259cd552c289fa422209bcc12d59270e6
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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/input/joystick/xpad.c