I am attempting to access the accelerometer and gyroscope functionality of the dualshock 4 controller for implementation into Unity.
DMGregory seems to have found a solution to this problem, my question is how he succeeded in getting the motion input working here.
He mentions that he reached his solution by grabbing the DS4Tool source and copying parts of the files: NativeMethods, HidDevices and HidDevice
I understand a lot of what is happening here, I just do not have the coding chops to get it working. I believe I should be "using NativeMethods" but do not fully understand how to access the read report to retrieve the necessary data.
Any help is greatly appreciated!