Ohjurot / DualSense-Windows

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

Input / Output buffer #23

Closed Roickard closed 3 years ago

Roickard commented 3 years ago

Hello, I have a question. Can I "read" previous output data, for example, if my controller has some rumble, can I save it and put it in the output. I just want to use your API for another application that will change only some output data and the rest will be saved (like led and rumble). As I understood, evaluateHidInputBuffer gets data from controller buffer and createHidOutputBuffer puts data in controller buffer, but I didn't understand why 0x02 is rightStick.x for input and same pointer is rightRumble for output. But so mysterious thing that I saw that after clearing buffer, filling it in createHidOutputBuffer, writing it to the controller and then reading it, it gets other data. I don't understand how it works. I guess I need read WinAPI documentation. Can you send some documentation which I should read or explain how it works and why these pointers used for buffer? I'm sorry for this tangled question and my bad English, I hope you understood :)

Roickard commented 3 years ago

Maybe I understood that it is impossible, because output is sending electric current and no receiving it. Also I found some information on this page - - and I understood that there are a lot of different types of reports and their variations.