How an optical mouse works
1. A LED shines light onto a surface through a ring at the base
2. The light is reflected off the surface through the ring
3. The CMOS sensor detects the reflected light and capture images of the surface (1500 per s)
4. The images are sent to the microprocessor
5. As the mouse moves, the sensor detects irregularities on the surface
6. The microprocessor translates those irregularities into X and Y direction movements of the pointer on the screen