Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Howard_Casto on March 24, 2013, 05:26:33 am

Title: Just Curious, can anybody manage to WRITE to a 360 controller in windows?
Post by: Howard_Casto on March 24, 2013, 05:26:33 am
I was working on mamehooker tonight and I thought I would hook up LED support for 360 controllers.  This isn't support via the xinput interface, so you have to do a HID write manually. 

The interface is fairly straightforward.

http://www.free60.org/GamePad (http://www.free60.org/GamePad)

As you can see, writing to the leds *should* be easy.  0x0103XX where "XX" is the led value.  I can't get it to do anything though.  When I send the data (I'm using plain old WriteFile api, but I've tried other methods) I get a "the parameter is incorrect" error message.  Same goes for rumble.  I can receive data from the device just fine. 

I'm using a wired controller btw. 

So has anyone managed to do this?  Is there something obvious I'm missing?