diff options
author | Jan Kratochvil <honza@jikos.cz> | 2007-07-18 00:35:40 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-07-18 00:35:40 -0400 |
commit | 4994cd8dadcf9d484ab3ec19f3c7c7a4e5353c1c (patch) | |
tree | 787afb858825b3e747bf8cbe04419fae80302d0d /drivers/input/joystick/Kconfig | |
parent | cb32da0416b823b7f4b65e7e85d6cba16ca4d1e1 (diff) |
Input: xpad - add support for leds on xbox 360 pad
Export LEDs on Xbox360 pad via led subsystem as a single device in
/sys/class/leds/xpad[0-9]+.
Xbox360 pad has four leds, which form a circle. Unfortunately the leds
can't be controlled independently and can only display a predefined
set of patterns (for example one is turned on wile others are off or
a rotating pattern - 1-2-3-4). To activate a pattern one needs to send
a specific command to the device (see http://www.free60.org/wiki/Gamepad).
Led subsystem allows us to set brightness, but there is nothing like
brightness on this device. So brightness is actually interpreted as
the command (only values between 0 and 14 are accepted).
Signed-off-by: Jan Kratochvil <honza@jikos.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/joystick/Kconfig')
-rw-r--r-- | drivers/input/joystick/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/input/joystick/Kconfig b/drivers/input/joystick/Kconfig index 12db72d83ea0..e2abe18e575d 100644 --- a/drivers/input/joystick/Kconfig +++ b/drivers/input/joystick/Kconfig | |||
@@ -275,4 +275,11 @@ config JOYSTICK_XPAD_FF | |||
275 | ---help--- | 275 | ---help--- |
276 | Say Y here if you want to take advantage of xbox 360 rumble features. | 276 | Say Y here if you want to take advantage of xbox 360 rumble features. |
277 | 277 | ||
278 | config JOYSTICK_XPAD_LEDS | ||
279 | bool "LED Support for Xbox360 controller 'BigX' LED" | ||
280 | depends on LEDS_CLASS && JOYSTICK_XPAD | ||
281 | ---help--- | ||
282 | This option enables support for the LED which surrounds the Big X on | ||
283 | XBox 360 controller. | ||
284 | |||
278 | endif | 285 | endif |