xpad icon indicating copy to clipboard operation
xpad copied to clipboard

Rumble Support

Open Noah-Steinberg opened this issue 7 years ago • 5 comments

Is there any rumble support for any controllers using xpad? I am currently working on my own driver that supports rumble for the microsoft xbox one controllers, and if it is wanted, I could look at doing it in xpad as well. If I had the time, I could look into other controllers as well.

Noah-Steinberg avatar Mar 31 '17 01:03 Noah-Steinberg

Yes, rumble is supported for all gamepads that xpad supports: Xbox, Xbox 360 (Wired and Wireless), and Xbox One (Wired).

See: https://github.com/paroj/xpad/blob/master/xpad.c#L1013

cgutman avatar Mar 31 '17 02:03 cgutman

Ah, I see, I had not looked closely enough at xpad. Thanks!

Noah-Steinberg avatar Mar 31 '17 03:03 Noah-Steinberg

Is there any wish for more rumble support than a single packet with strong/weak?

Noah-Steinberg avatar Mar 31 '17 15:03 Noah-Steinberg

You mean support rumble on the triggers? or something else?

Supporting trigger rumble is trivial from an xpad perspective, but I couldn't find a sensible way to map to the force-feedback API in the kernel.

cgutman avatar Mar 31 '17 19:03 cgutman

I am currently looking into any way to do it. The only issue is having to construct the packet byte by byte. So far I have support for the different kinds of rumble that the kernel specifies, but in very primitive and mostly hard coded ways. Also, Im getting all my information from the Xbox One Controller Protocall

Noah-Steinberg avatar Mar 31 '17 20:03 Noah-Steinberg