mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-03 03:52:36 +00:00
hidapi/libusb: only enumerate each interface once
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.
This commit is contained in:
@@ -1023,6 +1023,7 @@ struct hid_device_info HID_API_EXPORT *hid_enumerate(unsigned short vendor_id,
|
||||
libusb_close(handle);
|
||||
handle = NULL;
|
||||
}
|
||||
break;
|
||||
}
|
||||
} /* altsettings */
|
||||
} /* interfaces */
|
||||
|
||||
Reference in New Issue
Block a user