Skip to content

Commit

Permalink
Only enumerate each interface once (#625)
Browse files Browse the repository at this point in the history
If a device has multiple altsettings, like an Xbox Series X controller, make sure we only enumerate each interface once, not once for each altsetting.
  • Loading branch information
slouken authored Sep 24, 2023
1 parent 1ba21ce commit baa0dab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libusb/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,7 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
libusb_close(handle);
handle = NULL;
}
break;
}
} /* altsettings */
} /* interfaces */
Expand Down

0 comments on commit baa0dab

Please sign in to comment.