Motion controlled cursor
-
I am currently trying to create a cursor that is controlled via motion controls. Using only the X and Y axis, with a recalibration button in case of gyro drift. I got something that seems to work in most cases, but i am a little confused about one thing.
If i keep moving left, the x value approaches 1, and if i keep moving left the x value starts going back down again. So it works fine as long as that 1 point isnt anywhere on the screen, but once it is the cursor will bounce off that point.
Any ideas what to do? If anyone wants to look at the code drop a friend code and Ill add you. Thanks!
-
My friend code is SW-0798-2125-7893
-
you can use what you have describerd to detect motion, in fact you can just add some cases to determinate how the joycon has been moved, and also i think that switch lite compatibility is something to look for, so keep the analog sticks as a backup for moving the cursor