I posted a snippet about using a microcontroller as a mouse, and it works great, but it moves the mouse as a stepper motion.
How would I go about making it velocity driven? Like when I tilt the accelerometer further, the faster the mouse moves. I've seen it on youtube, and looked at some source code for how they did it, but can't seem to figure it out.
The only way I would know how is a ton of if statments polling for higher values, and I know that wouldn't be the best way.
I've been told that double integrating the acceleration would be a good method, but have no idea how its done. I've been googeling for about 6 hours with no good examples or guides.