Skip to content

Commit 3e4faed

Browse files
committed
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 <kai@kaishome.de>
1 parent 5bfa6a6 commit 3e4faed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hid-xpadneo/src/hid-xpadneo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ static const struct usage_map xpadneo_usage_maps[] = {
133133
/* fixup code "AC Home" from Linux report descriptor */
134134
USAGE_MAP(0xC0223, MAP_STATIC, EV_KEY, BTN_XBOX),
135135

136-
/* disable duplicate button */
137-
USAGE_IGN(0xC0224),
136+
/* fixup code "AC Back" from Linux report descriptor */
137+
USAGE_MAP(0xC0224, MAP_STATIC, EV_KEY, BTN_SELECT),
138138

139139
/* hardware features handled at the raw report level */
140140
USAGE_IGN(0xC0085), /* Profile switcher */

0 commit comments

Comments
 (0)