Emulating Xinput, what are the requirements?

Hello,

I'm looking to get XInput working on the nRF52840 so that our device can appear as an Xbox-compatible game controller. I'd appreciate any guidance or recommendations on how to approach implementing a custom feature like this on the Nordic platform.

Thank you in advance for your help!

Parents
  • If you are wiring XInput on the nRF52840 through Zephyr rather than TinyUSB, those Alpakka HID descriptors still map pretty cleanly onto one of the NCS USB samples. I would start from the HID sample, swap in the XInput report map, then confirm the device enumerates as a gamepad on Windows before you chase Zephyr USB stack quirks.

    I test HID/gamepad USB bits off the bench a lot now. Rent Yachts Thai if you ever need a quieter place than the lab to catch a firmware flash over DAZN-length waits.

Reply
  • If you are wiring XInput on the nRF52840 through Zephyr rather than TinyUSB, those Alpakka HID descriptors still map pretty cleanly onto one of the NCS USB samples. I would start from the HID sample, swap in the XInput report map, then confirm the device enumerates as a gamepad on Windows before you chase Zephyr USB stack quirks.

    I test HID/gamepad USB bits off the bench a lot now. Rent Yachts Thai if you ever need a quieter place than the lab to catch a firmware flash over DAZN-length waits.

Children
No Data
Related