There are many examples of code that allow a Leonardo/Micro become a HID joystick device, but in all the cases I’ve seen, the default HID keyboard and mouse are still part of the recognized devices in the PC device manager.
It would be cleaner if the KB/mouse could be removed from the HID implementation.
Obviously, the “traditional” method of removing them with the global CDC/HID definitions won’t work since HID still needs to be present!
The example HID.cpp appears to have statements that disable the KB/mouse, but the declarations don’t appear to do anything! Maybe they just make the KB/mouse “inert”, but completely removing them would be much better!
Any help in removing them would be greatly appreciated!
FYI, I’ve added a few files that work in 1.6.5 (nice work, by RamjetX!)
For bonus points, I think I can sus it out in the HID.cpp with a lot of trial & error (more errors than trial!), but what I’m really after is a 6-button, one-axis (throttle) emulation to be hacked into an ancient Thrustmaster WCS throttle. The HID declarations are a little arcane, and a bit of direction there would also be appreciated!
HID.cpp (18.1 KB)
USBAPI.h (7.27 KB)
leoJoy10bit_RamjetX.ino (6.58 KB)
Platform.h (402 Bytes)