From 3e4faed09750b90412d2869cd9d4451f895676df Mon Sep 17 00:00:00 2001 From: Kai Krakow Date: Sun, 4 Apr 2021 20:38:14 +0200 Subject: [PATCH] hid-xpadneo: Map instead of disable duplicate button "AC Back" It won't be reported twice when mapped to the same button anyways, so we can just map it. If either of the bits work, the button will work. Signed-off-by: Kai Krakow --- hid-xpadneo/src/hid-xpadneo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hid-xpadneo/src/hid-xpadneo.c b/hid-xpadneo/src/hid-xpadneo.c index 7e55b9ef..3734059b 100644 --- a/hid-xpadneo/src/hid-xpadneo.c +++ b/hid-xpadneo/src/hid-xpadneo.c @@ -133,8 +133,8 @@ static const struct usage_map xpadneo_usage_maps[] = { /* fixup code "AC Home" from Linux report descriptor */ USAGE_MAP(0xC0223, MAP_STATIC, EV_KEY, BTN_XBOX), - /* disable duplicate button */ - USAGE_IGN(0xC0224), + /* fixup code "AC Back" from Linux report descriptor */ + USAGE_MAP(0xC0224, MAP_STATIC, EV_KEY, BTN_SELECT), /* hardware features handled at the raw report level */ USAGE_IGN(0xC0085), /* Profile switcher */