Ohjurot / DualSense-Windows

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

gyroscope, 3rd axis not working ? #19

Open jonasfrey opened 3 years ago

jonasfrey commented 3 years ago

i think one of the axes is missing, when the controller is layed flat on a table and i turn it to the left and right there is no value chang in inState.gyroscope.x nor inState.gyroscope.y nor inState.gyroscope.z

compile and run the attached file to test what i mean

main.cpp.txt

https://user-images.githubusercontent.com/16288044/109431703-28563f00-7a08-11eb-83e6-0eea3a72c08b.mp4

MicaelJarniac commented 3 years ago

That'd be the yaw, right?

jonasfrey commented 3 years ago

well it depends on how you look at the controller if the usb c port points at the screen , then yes it would be the yaw axis image image

Ohjurot commented 3 years ago

Sorry for my late response. That is quit interesting, I did notice some odd things there too but I never investigated that issue due to lack of time. I will try to solve the issue as soon as possible thx for reporting

Ohjurot commented 3 years ago

I also have problems with the y axis like shown in the video. Will investigate now

Edit 01: The accelerometer is working very well with your code... that interesting because it should work the same way as the gyros

Edit 02: It may be possible that yaw isn't exposed (or at least not there where I suspected it) the currently yaw called position is more like a combination out of the other two axis.... but i continue investigating