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
  • Hello,

    I would expect you need to use one of the USB examples in the nRF Connect SDK, and then modify it to your needs:
    https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/zephyr/samples/subsys/usb/usb.html 

    Likely one of the HID devices are the best starting point.

    Kenneth

  • Hi Kenneth, I went through all the docs and after a bit of experimentation I was able to get it to run.
    The only issue I experienced was with the custom Microsoft descriptor which isn't standard USB spec.

    I'll soon be writing a detailed blog on Xinput emulation and post it on Github for anyone else who comes across this ticket.

    I suggest letting this ticket be open for now.

    I'll post the Github link on this thread soon and close it.

Reply
  • Hi Kenneth, I went through all the docs and after a bit of experimentation I was able to get it to run.
    The only issue I experienced was with the custom Microsoft descriptor which isn't standard USB spec.

    I'll soon be writing a detailed blog on Xinput emulation and post it on Github for anyone else who comes across this ticket.

    I suggest letting this ticket be open for now.

    I'll post the Github link on this thread soon and close it.

Children