Input: xpad - allow using triggers as buttons rather than axes
authorNicolas Léveillé <knos@free.fr>
Wed, 30 Dec 2009 04:39:05 +0000 (20:39 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 30 Dec 2009 07:33:37 +0000 (23:33 -0800)
commitb45d44e7e00c1726dac9437b66c05d3d27acb3f0
tree683e4d8df259c5ab0f2b0c9a7406ba52536d2ed7
parent1d9f26262aef6d63ff65eba0fd5f1583f342b69b
Input: xpad - allow using triggers as buttons rather than axes

Certain devices implement triggers as buttons rather than axes. In
particular, arcade sticks such as the HORI Real Arcade Pro.EX do not
have analog buttons.

These devices are now setup to present buttons rather than axes for
triggers.

User-space applications often also have problems with
axes-as-buttons. Activating MAP_TRIGGERS_TO_BUTTONS for a device
removes the artificial difference between buttons and triggers.

Signed-off-by: Nicolas Léveillé <nicolas@uucidl.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/joystick/xpad.c