The old Pointer
section has been replaced by a more general
InputDevice
section. The following is a minimal example
of an InputDevice
section for a mouse:
Section "InputDevice" Identifier "Mouse 1" Driver "mouse" Option "Device" "/dev/mouse" Option "Protocol" "Auto" EndSection
The mouse
driver supports the following config file options:
This option tells the X server the number of buttons on the mouse. Currently there is no reliable way to automatically detect the correct number. This option is the only means for the X server to obtain it. The default value is three.
Option "Buttons" "N"
This option maps the Z axis (wheel) motion to a pair of buttons or to another axis.
Option "ZAxisMapping" "X" Option "ZAxisMapping" "Y" Option "ZAxisMapping" "N M"
The first example will map the Z axis motion to the X axis motion.
Whenever the user moves the wheel/roller, its movement is reported as
the X axis motion. When the wheel/roller stays still, the real X axis
motion is reported as is. The last example will map negative Z axis
motion to the button N
and positive Z axis motion to
the button M
. If this option is used and the buttons N
or M
actually exists in the mouse,
their actions won't be detected by the X server.
The following option will set the mouse device resolution to N
counts per inch, if possible:
Option "Resolution" "N"
Not all mice and OSs can support this option.