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

Thread: Two Joystick HIDs at the Same Time (Teensy ++ 2.0)

  1. #1
    Junior Member
    Join Date
    Dec 2018

    Two Joystick HIDs at the Same Time (Teensy ++ 2.0)

    Hello everyone!

    I originally posted this in the project guidance section, but I think this question might be better suited here.

    For the past couple of days I have been trying to write code to allow me to display two Joystick HID interfaces at once. (Having two separate HIDs in device manager and game controllers)

    My objective is to connect two retro controllers to the Teensy and have them appear as their own gamepad interface in windows/mac/linux. I have found this repository that has managed to do what I intend but it uses the old version of Teensyduino, because of that, i'm limited to 8 buttons and 2 axis, and most of the new Joystick commands from version 1.45 are unavailable. I would like to ultimately make N64 and Gamecube controllers work as well, so I'd need 4 axis and 10 buttons + 4 for DPad.

    I approached this problem in two ways: First I tried adding buttons and axis to the code I provided in the above link, but after hours of trying, even if I did manage to modify the USB.C file and other core files, I couldn't get the controller to work correctly or at all.

    My second approach was to take the code as an inspiration and try to implement dual Joystick HIDs using the new version of Teensyduino and Arduino IDE, which supports 32 buttons 6 axis and one multi directional HAT switch. I managed to fix some of the compiler errors on my attempt to try and replicate the multiple HID joystick code on the newest version of the Teensy IDE. The Joysticks still don't appear in the device manager, it may be that I have the wrong usb hid device descriptors, or that my USB_API.cpp is wrong.

    Here's the code if anyone would like to take a look.

    Do you guys have any suggestions? or know of any other project that has done this same thing? I'm willing to start from scratch.

    Thanks in advance!

  2. #2
    Junior Member
    Join Date
    May 2019

    did you have any success regarding this topic meanwhile?

    I am also urgently looking for a solution to drive two HID joystick with Teensy 2.0 ++ :-/

    Thank you,


Posting Permissions

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