Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

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

  1. #1

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

    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 by sofakng; 07-06-2019 at 11:35 PM.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,176
    Quote Originally Posted by sofakng View Post
    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.

  3. #3
    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?

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,176
    Quote Originally Posted by sofakng View Post
    Are there any plans to change the way this works?
    Nope, no plans.

    It sounds like I'll need to edit this file every time I update the Teensy libraries?
    Yes, save a backup somewhere safe.

    That is, if you don't already have a regularly scheduled backup like Mac time machine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •