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

Thread: Xbox Adaptive Controller with Teensy HID Joystick

  1. #1
    Junior Member
    Join Date
    Jan 2015
    Posts
    7

    Xbox Adaptive Controller with Teensy HID Joystick

    I've been playing around recently with Microsoft's new Xbox Adaptive Controller, which is meant to be like a 'modular' gaming controller for people with disabilities. One of the features on it is that you can plug one or two HID joysticks into it, and it interprets the X & Y axes of the joysticks as if they were the controller's thumbsticks. Plugging in a flight-sim joystick, a Logitech gamepad, or even a regular Xbox controller works fine with this. But when I plugged in a Teensy 2.0 that was programmed in "Keyboard + Mouse + Joystick" mode, and didn't get any result.

    My theory on this is that the Adaptive Controller is looking for devices that appear -only- as a Joystick, and that the triple-purpose HID mode of the Teensy throws it off. Like it sees the Keyboard or Mouse components first, and decides that this can't possibly be a Joystick. Or something.

    Any thoughts or suggestions on how I might get this working? Thanks!

  2. #2
    Member
    Join Date
    Jul 2018
    Posts
    38
    I have been looking at various Teensy USB projects as well but I do not have an adaptive controller. I do not know which approach is easiest.

    1) Modify the files in hardware/teensy/avr/cores/usb_hid to create a joystick only driver.

    2) For Teensy LC/3 there is a library that makes the Teensy looks like an Xbox 360 controller. No keyboard, no mouse, no raw HID, etc. just an XINPUT (xbox 360) controller.

    The original repo is https://github.com/zlittell/MSF-XINPUT but it is a bit stale. The fork https://github.com/dmadison/MSF-XINPUT works with Arduino IDE 1.8.7 and Teensyduino 1.44.

    I used this on Teensy LC and Teensy 3.6 plugged into an Ubuntu 18.04 computer. Note this will not work with an Xbox console because real controllers have security chips. But I doubt this will be an issue since the adaptive controller is a authentic Xbox accessory.

    Good luck!

  3. #3
    Junior Member
    Join Date
    Oct 2018
    Posts
    6
    hello Steve,

    could you solve the issue ?
    i ran into the same problem, see thread:
    https://forum.pjrc.com/threads/54227...implementation

  4. #4
    Junior Member
    Join Date
    Jan 2015
    Posts
    7
    I just realized that when I tried to reply to this thread, I was in fact replying on the thread that Chris linked above. If anyone is still interested, there's more discussion of this topic over there.

  5. #5
    Member
    Join Date
    Jul 2018
    Posts
    38
    As far as I can tell, the XAC ignores the joystick buttons. Anyone got joystick buttons to work?

    I found XAC has a Shift function so a single joystick can be swapped to the other joystick when the Shift key is held down.

    https://support.xbox.com/en-US/xbox-...ive-controller

Posting Permissions

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