Author Topic: xinput WTF is it?  (Read 113 times)

ulao

  • Frequent Contributor
  • ****
  • Posts: 86
xinput WTF is it?
« on: December 01, 2017, 10:08:46 am »
Could anyone here please talk to me at a firmware level? This so called xinput, what is it really? From what I gather xinput is an API that supports xbox controllers. So when someone says "can you support xinput in your device" my answer has to be no... My device being a HID gamepad.

Though in reading I find this xbox controller is nothing more then a limited USB device that communicate with raw hid. So what is raw hid, is that feature reports?

So more specific to my point and if any of that is true, can't I just answer the raw report from my HID device and act as a xbox controller? This then would suggest there is a document (or hidden, proprietary) protocol to follow.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 2639
    • Lakeview Research
Re: xinput WTF is it?
« Reply #1 on: December 03, 2017, 12:29:17 pm »
At the firmware level, HIDs send and receive HID reports using interrupt and control transfers.

On the host, a particular API might require supporting a specific report or report type.

ulao

  • Frequent Contributor
  • ****
  • Posts: 86
Re: xinput WTF is it?
« Reply #2 on: December 06, 2017, 12:25:12 pm »
So you think it may be as simple as building a report to match the transfers needed to be xinput?

looks like someone want to do it.
https://forum.pjrc.com/threads/28536-Creating-XUSB-gamepad-device-for-XInput

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 2639
    • Lakeview Research
Re: xinput WTF is it?
« Reply #3 on: December 06, 2017, 09:42:58 pm »
Yes, it's just a HID.