Table of Contents (click to expand)
A computer mouse tracks your hand movement and moves the on-screen cursor to match. In a mechanical (ball) mouse, a rolling rubber ball turns two wheels that measure side-to-side (x-axis) and up-and-down (y-axis) motion. A modern optical mouse shines an LED on the surface while a tiny camera snaps thousands of images per second; a processor compares them to work out how far and which way you moved.
I vividly remember one time when my computer mouse became inoperative. With no alternative at my disposal, I had to depend entirely on the keyboard to get my work done. Not only did it take almost twice as long, but working without a mouse also turned out to be incredibly frustrating! That’s when I first realized the true importance of that tiny thing lying unassumingly beside every 21st-century human’s desktop.
Whenever we want to get anything done on a desktop computer screen, our hands instinctively reach out for the mouse; when you move the mouse on the desk, the pointer on the screen moves in the same pattern with absolute precision. How does this action, which so many of us take for granted, actually happen?
What’s A Computer Mouse?
The joking comparison of a computer mouse and a real mouse is antiquated, so let’s skip that. A computer mouse, as we all know, is an electronic device (which may or may not be wireless) that helps to move the cursor on a computer screen as you move the mouse over a flat surface. So, a mouse essentially calculates how much you move it in a certain direction (in two dimensions) and subsequently feeds the computer that information to allow for comprehensive control of the graphic user interface.

There are a number of variants of computer mice, including a mechanical mouse, optical and laser mice, a 3D mouse, inertial and gyroscopic mice, the ergonomic mouse, gaming mice and tactile mice, but in this article, we’re going to discuss the two most popular variants among these. So, let’s get started!
What Is A Mechanical Mouse?
A mechanical mouse consists of a heavy rubber ball whose movement makes the cursor move on the screen. Commonly known as the ‘rolling rubber ball’ mouse, it is considerably heavy, thanks to the rubber ball, a few wheels, and a number of other mechanical parts present inside it.
How Does A Mechanical Mouse Work?
When you move the mouse, the ball rolls beneath it, pushing the two plastic wheels/rollers linked to it in the process. One of those wheels detects side-to-side movement (x-axis wheel) and the other (y-axis wheel) detects movement in the up-and-down direction. Both of these wheels consist of spokes that ‘break’ a thin light beam inside the mouse. The number of times the beam breaks helps to calculate how far the mouse has moved.

For instance, when you move the mouse straight up, the y-axis wheel turns. The farther up you go, the more the ball pushes the wheel and the more it breaks the light beam. This helps to determine how far the mouse has moved straight up. Similarly, the mouse uses the x-axis wheel to calculate side-to-side movement. When the mouse is moved at an angle, the calculations obtained from the movement of both of these wheels are used.
Mechanical mice were the standard for decades, but due to their clunkier design and the fact that the ball constantly picked up dust and grime (which meant frequent cleaning), they were steadily replaced by optical mice. The turning point came in 1999, when Microsoft's IntelliMouse Explorer brought ball-free optical tracking to the mainstream, and by the mid-2000s the rolling-ball mouse had all but disappeared from store shelves.
What Is An Optical Mouse?
An optical mouse is technologically much more advanced than a mechanical mouse. Unlike the latter, an optical mouse has no moving parts for tracking. It consists of an LED (which generates the signature red glow you can see under the mouse), a tiny image sensor (essentially a low-resolution camera), a digital signal processor (DSP) that does the number-crunching, a switch mechanism for the buttons, and a few other simple components. Some mice have another LED that lights up a plastic strip on the body as an indication that the mouse is powered on.
How Does An Optical Mouse Work?
The LED installed at the bottom of the mouse emits a bright light in the downward direction. Since a mouse is usually used on plain surfaces, the light bounces back from the surface and enters a small image sensor that’s also mounted on the bottom, almost next to the LED.

Behind a small lens, this sensor works like a miniature digital camera, snapping thousands of low-resolution photos of the surface every second. As you move the mouse around, the on-board digital signal processor (DSP) compares each new image with the one just before it. By measuring how the tiny surface features (scratches, fibers, specks of dust) shift from frame to frame, the DSP works out how far and in which direction you’re moving the mouse, then passes those coordinates to the computer.
Optical mice are much lighter and faster than mechanical ones, and have therefore gained enormous popularity all over the world. A close cousin, the laser mouse, swaps the LED for a laser diode; the focused laser light reaches deeper into a surface’s texture, so a laser mouse can track on tricky surfaces like glass or glossy desks where a standard optical mouse struggles. The underlying camera-and-DSP principle, however, is exactly the same. With improvements in technology, newer and even more advanced mice – that address issues like ergonomics and the health of the user – are taking center stage. The choice of the right variant rests with the user, but one thing remains universally true – computers and mice shall always remain inseparable.













