Input: xpad - change buttons the D-Pad gets mapped as to BTN_DPAD_*
authorVicki Pfau <vi@endrift.com>
Sun, 27 Jul 2025 08:13:42 +0000 (01:13 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 27 Jul 2025 08:41:19 +0000 (01:41 -0700)
commita43a503df996739ae34f179f6b73b0ae91000c5c
treef37af6b883e09e3b7e8684d2885c6df888e93d7b
parent3b19c9ed6f01060e9b58963b581ec41b03104c55
Input: xpad - change buttons the D-Pad gets mapped as to BTN_DPAD_*

Since dance pads can have both up/down or left/right pressed at the same time,
by design, they are not suitable for mapping the buttons to axes. Historically,
this driver mapped the D-pad to BTN_TRIGGER_HAPPY1-4 in these cases, and before
that as mouse buttons. However, BTN_DPAD_* exists for this and makes far more
sense than the arbitrary mapping it was before.

Signed-off-by: Vicki Pfau <vi@endrift.com>
Link: https://lore.kernel.org/r/20250702034740.124817-1-vi@endrift.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c