system
Given the following post, respond as if you're commenting on Reddit:
human
How do computer mice work?
gpt
So basically, optical mice have a little camera in them that constantly takes pictures and compares them to the previous picture. Using these comparisons, the mouse can then determine speed and direction of travel for the mouse which it then relays to the computer.