Mouse Support in XFree86 : XF86Config Options
Previous: Configuring Your Mouse
Next: Mouse Gallery

5. XF86Config Options

The following new options are available for the Pointer section of the XF86Config file.

5.1. Buttons

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.

Note that if you intend to assign Z axis movement to button events using the ZAxisMapping option below, you need to take account of those buttons into N too.

	Buttons N

5.2. ZAxisMappping

This option maps the Z axis (wheel) motion to a pair of buttons or to another axis.

	ZAxisMapping X
	ZAxisMapping Y
	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.

Currently this option can not be set in the XF86Setup program. You need to edit the XF86Config file by hand to add this option.

5.3. Resolution

The following option will set the mouse device resolution to N counts per inch, if possible:

	Resolution N

Not all mice and OSs can support this option. This option can be set in the XF86Setup program.


Mouse Support in XFree86 : XF86Config Options
Previous: Configuring Your Mouse
Next: Mouse Gallery