]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: xpad - fix Share button on Xbox One controllers
authorVicki Pfau <vi@endrift.com>
Sun, 11 May 2025 05:59:25 +0000 (22:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 May 2025 06:24:06 +0000 (08:24 +0200)
commitcbc82e7db16d59c301457312a624a7de2c03cd4a
treee4814355fd71f07c27578aa19d69e734996d3e59
parent90fa6015ff83ef1c373cc61b7c924ab2bcbe1801
Input: xpad - fix Share button on Xbox One controllers

commit 4ef46367073b107ec22f46fe5f12176e87c238e8 upstream.

The Share button, if present, is always one of two offsets from the end of the
file, depending on the presence of a specific interface. As we lack parsing for
the identify packet we can't automatically determine the presence of that
interface, but we can hardcode which of these offsets is correct for a given
controller.

More controllers are probably fixable by adding the MAP_SHARE_BUTTON in the
future, but for now I only added the ones that I have the ability to test
directly.

Signed-off-by: Vicki Pfau <vi@endrift.com>
Link: https://lore.kernel.org/r/20250328234345.989761-2-vi@endrift.com
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/joystick/xpad.c