This is a minimum, conservative, change set extracted from https://github.com/usb-tools/python-usb-protocol/pull/6 to allow the addition (as binary blobs) of HID Report Descriptors. These do not contain their type in the first octet so the existing mechanisms don't work. With this PR a HID Report Descriptor can be attached directly to a DeviceDescriptorCollection provided it's HID Descriptor has been attached to an interface. A typical configuration would be;
This is a minimum, conservative, change set extracted from https://github.com/usb-tools/python-usb-protocol/pull/6 to allow the addition (as binary blobs) of HID Report Descriptors. These do not contain their type in the first octet so the existing mechanisms don't work. With this PR a HID Report Descriptor can be attached directly to a DeviceDescriptorCollection provided it's HID Descriptor has been attached to an interface. A typical configuration would be;
I don't think this is a complete solution to support HIDs, but it does allow them to be used today while the issues in the above PR are resolved.