Ohjurot / DualSense-Windows

Windows API for the PS5 DualSense controller
Other
342 stars 38 forks source link

BT gyro info reading with another program #3

Closed LeifMessinger closed 3 years ago

LeifMessinger commented 3 years ago

There was a link from the other issue's form, it had a link to some other software. Darn link didn't show up I think the "Input reports" correspond to the 78 bytes in the buffer. 0-9 seems to be the same as what we get 11 is 1 when the ps button is clicked 11 is 2 when the touchpad is clicked 11 is 4 (third bit) when the mute button is clicked 17-28 seem to be the gyro 34-37 seem to be the touchpad 39-41 seem to be the second finger on the touchpad 38 and 42 are wildin, but seem to be connected to the touchpad data 52 counts up each poll, then overflows to 53, which I assume overflows to 54,55, and 56 29 to 32 seem to be more precise time, note how 52-53 and 31-32 are the same thing

Considering that "Headphones connected" is a single bit out of 78 bytes, that's basically a needle in a haystack. The only question is why does this program get more detailed info than this one...

LeifMessinger commented 3 years ago

The headphones seem to be another HID Device,

image

LeifMessinger commented 3 years ago

Only thing left to find is the mic, adaptive triggers, leds, and battery state.

describe19 commented 3 years ago

https://github.com/Ryochan7/DS4Windows/commits/dualsense-integration Ryochan has put battery in his dualsense branch now. He has a discord if you want to contact him, it's linked in the ds4windows readme.

Ohjurot commented 3 years ago

@LeifMessinger I will check out the other software and the issue thread. My suspicion is that you have to first send a „controller enable“ and than you can read all input data. The adaptive triggers are actually special speakers so that may be the other hid device. However it is also possible to Control the adaptive triggers via the default output report (Sony has a few fixed features with only a few parameters available) The main speaker and the headphone jack seems to be detected by windows as normal speakers, so there is no need for specific integration (however I have not testet it yet). Same should go for the mic. But still some research to do.

My current plans are:

Ohjurot commented 3 years ago

@describe19 Thanks! I will get to that later this day.

describe19 commented 3 years ago

I'm very thankful for the work being done on this so quickly great job.

FancyBanana commented 3 years ago

@Ohjurot I think you're confusing haptic feedback (which is seen as rear 2 channel audio) and adaptive triggers.

Ohjurot commented 3 years ago

@FancyBanana you are right! I always thought that the rumble motors and the adaptive triggers are the haptic feedback. Just discovered this functionality. I just tested it out like it was done in this Video and it works amazingly well. So, another point on my to do list... This controller is getting better and better ;)

Ohjurot commented 3 years ago

BT is done