atar-axis / xpadneo

Advanced Linux Driver for Xbox One Wireless Controller (shipped with Xbox One S)
https://atar-axis.github.io/xpadneo/
GNU General Public License v3.0
2.01k stars 113 forks source link

pcap captures #175

Closed gabrielgbs97 closed 4 years ago

gabrielgbs97 commented 4 years ago

I do not own a xbox one s controller, but would like to get some pcap captures, or something like ASCII debug txt. I would like to emulate the xbox BT HID gamepad from a pc to another PC/Android as target platforms.

kakra commented 4 years ago

I wonder how that would interact between PC and Android as Android clearly seems to expect its own special mapping.

Usually, from what I see, the device descriptor is pretty much okay: It maps keycode offsets directly and correctly to kernel event codes. But neither the legacy js interface nor SDL uses these offsets but instead expects hard-wired numbers for axis and key codes.

I'm not sure if dumping hidraw would reveal the original or the fixed up HID reports. But actually those reports are probably what you want to replay/proxy to the other box.

kakra commented 4 years ago

There's a bunch of btmon logs in some of the recent issue reports, maybe you can work with those. It's not a pcap capture but ASCII text.

gabrielgbs97 commented 4 years ago

Thank you for the reference! I will try