| #36142 posted 2018-09-04 @ 03:35 GMT |
I am looking at building a USB device, that when plugged into a windows PC, that would be registered as a XUSB device. My custom device would function as an xbox 360 controller. Same buttons and features, for the most part.
I am familiar with coding embedded systems. I have picked out a microcontroller that would be able to handle the USB communications. I am not concerned about how to code the uC to function as a 360 controller. This part is relatively easy.
My only concern right now is the communications between my device and the PC. I am aware that the XINPUT.dll is used for XUSB devices. I would like my uC to conform to the XUSB communication standard. I was wondering if anyone has been able to do some research into this. What packets to send, how to send them, etc. Or, if there are any resources that I could use in order to code a device to appear and function as a XUSB device?
I came across this website: https://computerquip.wordpress.com/2013/12/16/i-hate-microsoft-but-for-the-better-good/ that detailed some of the messages that the controller uses to communicate with the PC for XInput. I was wondering if there is a resource that is more complete?
Also, I am only doing this for a wired controlled. I am not looking at wireless because from my own research, that includes a lot of extra packets and additional complexity that I do want to introduce right now.
Thank you and I look forward to your reply.