This project measures the mouse rate in the x and y direction, as well as the general mouse rate.
Everything by me. You may use this in your own projects as long as you give credit.