Skip to content

Commit

Permalink
hid-xpadneo: Map instead of disable duplicate button "AC Back"
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kakra committed Jun 23, 2021
1 parent 5bfa6a6 commit 3e4faed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hid-xpadneo/src/hid-xpadneo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 3e4faed

Please sign in to comment.