Configuring a Wheel Mouse

Many mice sold since the late 1990s include wheels or rollers. Typically, you can use the wheel to scroll the contents of windows or to perform application-specific tasks. You need a special configuration to implement these features, though. First, you need to specify the imps/2 mouse protocol in XF86Config. Second, you need to add the following line to the mouse InputDevice section:

Option "ZAxisMapping" "4 5"

This line tells X to treat movement of the wheel in its two directions as equivalent to presses of a fourth and fifth button. It's then up to the program to interpret these virtual button presses appropriately. Most programs released since the late 1990s do so. If you encounter a program that doesn't respond to the wheel, consult the next section, "Configuring Extra Mouse Buttons."

Note Most scroll wheels replace the middle mouse button. This fact isn't a concern, because the wheels can typically be depressed, thereby functioning as a regular middle mouse button.

0 0

Post a comment