Implemeting xbox one controller on uhid

Stephane D'Alu stephane.dalu at gmail.com
Thu Jun 27 13:16:18 UTC 2019


Hi

I'm still trying to implement the xbox one controller on the kernel
uhid [2] module, based on the linux xpad.c [1]

I've found that I need, during the attach phase, to write an init packet 
on the interrupt endpoint; on linux this is done using the USB request 
buffer (URB) [l.1041].
On freebsd I'm kind of stuck on the function that I should use to 
transmit such a packet, I've tried the usbd_req_set_report, but it 
doesn't look like the right function.

any help welcome


[1] https://github.com/paroj/xpad/blob/master/xpad.c
[2] /usr/src/sys/dev/usb/input/uhid.c

-- 
Stephane D'Alu


More information about the freebsd-usb mailing list