An extract from RMP meter Project;
"We decided to try and recycle a simple ball mouse into a useful encoder for our project. Each mouse has at least 2 rotary encoders so we attempted to reuse these encoders into something that can be used with a microcontroller for an input device as a rotary pulse generator (RPG). Useful !!