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/GamePadAs 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?