Closed Artemiy-Z closed 3 years ago
https://github.com/TrueOpenVR/TrueOpenVR-DIY/blob/master/Controllers/Arduino/Controller.ino#L87-L98 We read the analog value of the stick on the Arduino, it seems it is 0 to 1023, we convert it to the range from -1 to 1.
So, can it be in float type?
Yep
Okay, thanks
How can i modify your code to work with analog stick?