|
The mouse of a computer is a very important part which lets you
have greater mobility while using a computer.
As you may already know, today, mice can have lasers instead of
the traditional rollerball. The optical mice are better because
they are exact, and they don't have a ball that wears out.
The use of a mouse is to be able to open a file or get from place
to place on your computer screen. It's purpose is to help you get
farther into what you need. If there was no mouse, you couldn't
do anything on a computer. It would be useless.
When you use your mouse, five steps occur before anything happens:
- The ball inside the mouse touches the desktop and rolls while
it moves
- Two rollers inside the mouse touch the ball. One is positioned
to detect motion in the X direction, and one is turned 90 degrees
to feel the motion in the Y direction.
- Each roller conects to a shaft with a holed disk attached to
the end. When the shaft spins, so does the disk.
- On either side of the disk is an infrared light emitting diode
(LED) and an infrared sensor. The spinning disk breaks up the
light and the infrared sensor sees pulses of light. The rate of
the pulsing tells the onboard processor how fast to move the cursor
using binary code. (ones and zeroes)
- This data is transferred to the computer through the mouse cord.
When a user moves or clicks a mouse button, the mouse sends 3 bytes
each containing 8 bits to the computer. The first 8 bits contain
the folowing in binary code.
| Bit # |
Contents |
| 1 |
Left button(0=off-click=1or on) |
| 2 |
Right button(0=off-click=1or on) |
| 3 |
0 |
| 4 |
1 |
| 5 |
X direction |
| 6 |
Y direction |
| 7 |
X overflow |
| 8 |
Y overflow |
|