This caused an issue with the PS4 Slim controller, as the endpoint descriptor was two bytes longer on the PS4 slim controller when reading the audio interface
I suspect this is due to the fact that the audio interface (USB descriptor type 0x24) it is currently not supported by the library
This is similar to what is done in the example as well: cbea36f76f/examples/USB_desc/USB_desc.ino (L241)
Fixes issue #273
The following collisions resolved:
hid.h -> usbhid.h
hid.cpp -> usbhid.cpp
HID -> USBHID
HID_BOOT_PROTOCOL -> USB_HID_BOOT_PROTOCOL
HID_PROTOCOL_NONE -> USB_HID_PROTOCOL_NONE
HID_PROTOCOL_KEYBOARD -> USB_HID_PROTOCOL_KEYBOARD
HID_PROTOCOL_MOUSE -> USB_HID_PROTOCOL_MOUSE
As a result, it's possible to use the library together with Arduino's bundled HID / Mouse / Keyboard libraries (Leonardo, Micro, or Due).
https://www.arduino.cc/en/Reference/MouseKeyboard