Ports and Interfaces > USB

xinput WTF is it?

(1/2) > >>

ulao:
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:
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:
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:
Yes, it's just a HID.

ulao:
Could one write a xinput device without a driver? That is to say so that windows installs a driver for it.  I'm wondering if just changing the device and descriptor reports are enough to get it to show as a xinput.

Navigation

[0] Message Index

[#] Next page

Go to full version