I'm trying to get a device to be both keyboard and mouse (personalized wireless remote). I have mouse and keyboard working separatley but at that point my limited understanding of descriptors (and indeed USB generally) fails me.
On the Microchip board this example
https://www.microchip.com/forums/FindPost/142315 was suggested. I modified my existing working mouse descriptor and now it seems to enumerates correctly - in device manager I now have an extra USB input device, an extra HID keyboard and an extra HID mouse but the mouse "draw a square" code no longer appearently does anything.
BTW I use Proton Basic to program PIC's, I've tried C but my brain must be just too small.
Hardware appears to be sound, it ran the mouse only code ok, enemerated but did nothing with the modified code, then worked ok again with mouse only code.
I realize that I have only posted part of the project but I am at a loss to know what bits would help.
I include my original and modified descriptors.
Is this method sound? Any suggestions, advice etc
George