Skip to content

Commit

Permalink
xpadneo, quirks: Let another Microsoft OUI bypass heuristics
Browse files Browse the repository at this point in the history
Note to myself: We should probably find some additional trait of the
GameSir devices to use in heuristics. Nevertheless, the new quirk flag
can be useful in the future if GameSir has another surprise and
suddenly behaves differently.

Fixes: #513
Signed-off-by: Kai Krakow <[email protected]>
  • Loading branch information
kakra committed Dec 7, 2024
1 parent 82326de commit ed56962
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/heuristics/gamesir-nova.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Officially validated OUIs are marked with a "+".
| 44:16:22 + | Microsoft | `0100 0100 : 0001 0110 : 0010 0010` |
| 68:6C:E6 + | Microsoft | `0110 1000 : 0110 1100 : 1110 0110` | 283 inval match
| 98:7A:14 + | Microsoft | `1001 1000 : 0111 1010 : 0001 0100` |
| AC:8E:BD + | Microsoft | `1010 1100 : 1000 1110 : 1011 1101` | 283 inval match
| C8:3F:26 + | Microsoft | `1100 1000 : 0011 1111 : 0010 0110` |
| **AND mask** | | **`0000 0000 : 0000 0000 : 0000 0000`** | **mask 0x00**
| 98:B6:E9 + | Nintendo | `1001 1000 : 1011 0110 : 1110 1001` |
Expand Down
1 change: 1 addition & 0 deletions hid-xpadneo/src/hid-xpadneo.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ static const struct quirk xpadneo_quirks[] = {
DEVICE_OUI_QUIRK("98:B6:EC",
XPADNEO_QUIRK_SIMPLE_CLONE | XPADNEO_QUIRK_SWAPPED_MASK),
DEVICE_OUI_QUIRK("A0:5A:5D", XPADNEO_QUIRK_NO_HAPTICS),
DEVICE_OUI_QUIRK("AC:8E:BD", XPADNEO_QUIRK_NO_HEURISTICS),
DEVICE_OUI_QUIRK("E4:17:D8", XPADNEO_QUIRK_SIMPLE_CLONE),
};

Expand Down

0 comments on commit ed56962

Please sign in to comment.