This is the code for the Ultramouse device as seen on youtube: https://www.youtube.com/watch?v=2kRi1g88mWI It is currently used on the Arduino platform.