]> git.baikalelectronics.ru Git - kernel.git/commit
Input: xpad - set the LEDs properly on XBox Wireless controllers
authorPierre-Loup A. Griffais <pgriffais@valvesoftware.com>
Mon, 22 Jun 2015 21:10:36 +0000 (14:10 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 22 Jun 2015 21:24:57 +0000 (14:24 -0700)
commitbf3a1ac581f452d1905bcde23d73aaf288e173d8
treea5882c75aca99569f57b93a449000eb0ccef09ca
parent8f1def53b6c6cc758df4ab2a1d8ef6856eb8c866
Input: xpad - set the LEDs properly on XBox Wireless controllers

Based on Patch by Pierre-Loup A. Griffais <pgriffais@valvesoftware.com>:
Add the logic to set the LEDs on XBox Wireless controllers.  Command
sequence found by sniffing the Windows data stream when plugging the
device in.

Updated based on comments on linux-input:
unify codepaths in xpad_send_led_command for wired/ wireless controller.
Also document command values for clarification.
All values tested on Xbox 360 Wireless Controller.

Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c