Skip to content

Commit

Permalink
[HID] Add USAGE_PAGE32 to parser for 8bitdo SF30 Dinput
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed Apr 20, 2021
1 parent 4785c76 commit a37d89d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main/adapter/hid_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ void hid_parser(struct bt_data *bt_data, uint8_t *data, uint32_t len) {
hid_stack[hid_stack_idx].usage_page = 0xFF;
desc += 2;
break;
case 0x07: /* USAGE_PAGE32 */
hid_stack[hid_stack_idx].usage_page = 0xFF;
desc += 4;
break;
case HID_LI_USAGE: /* 0x09 */
case HID_LI_USAGE_MIN(1): /* 0x19 */
if (!hid_usage_is_collection(hid_stack[hid_stack_idx].usage_page, *desc)) {
Expand Down

0 comments on commit a37d89d

Please sign in to comment.