Open leopck opened 8 years ago
set this to three: 0x02, // bNumInterfaces (Normally 1)
Actually, it looks like other work needs to be done. I am not the best at USB descriptors, but this doesn't look right. Also, be sure to update all total lengths that you've changed, i.e.
0x5A, 0x00, // wTotalLength
I've been trying to enable joystick over espusb, I've managed to add the joystick hid descriptor based off a joystick I have (Microsoft Force Feedback Joystick 2). I am trying to attempt to create a composite device with mouse + keyboard + joystick... is this possible?
Anyway, I managed to get some readings from the 'dmesg' by adding the hid descriptor into the usb_config.h but I'm receiving lots of errors as well :( I think I'm missing something or doing something wrong. Any advice? I've placed the usb_config.h together with this post.
joystick_hid_desc
config_descriptor
descriptor_list[](honestly, I don't have a clue on the 0x2200 thing, so i just added and increased the number sequentially :D)
EDIT: Added the usb_config.h on gist: https://gist.github.com/leopck/aadf4d8c7362d8f4b353740e41a54fa7