How can I enable USB Keyboard/Mouse/Serial but disable Joystick?

Status
Not open for further replies.

sofakng

Active member
I'm using the Arduino IDE but moving to PlatformIO. Regardless, the Arduino IDE provides different USB HID options for the Teensy boards.

The best option for me is "USB Keyboard/Mouse/Serial/Joystick", but I need to disable Joystick. Leaving it enabled is causing problems because the PC thinks a joystick is connected.

What's the best way to solve this?

I've searched these forums and have found posts talking about editing usb_desc.h that file is a bit intimidating...

EDIT: This is on the Teensy 3.2.
 
Last edited:
What's the best way to solve this?

Edit usb_desc.h. See the comments in that file for details.

If using Windows, you may need to run some sort of utility to clear any previous record of the USB device from the Windows registry. Or increase the BCD version number, so Windows detects it as a new version of the USB device. Otherwise it might use the stored info from the registry.
 
Thanks very much for the information.

Are there any plans to change the way this works? It sounds like I'll need to edit this file every time I update the Teensy libraries?
 
Status
Not open for further replies.
Back
Top