<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>XF86Config Options </TITLE>
</HEAD>
<BODY BGCOLOR="#efefef" TEXT="black" LINK="blue" VLINK="#551A8B" ALINK="red">

<A HREF="mouse.html"><EM>Mouse Support in XFree86</EM></A>
 <b>:</b> <EM>XF86Config Options </EM><BR>
<b>Previous:</b> <A HREF="mouse4.html"><EM>Configuring Your Mouse </EM></A><BR>
<b>Next:</b> <A HREF="mouse6.html"><EM>Mouse Gallery </EM></A>


<HR NOSHADE>
  <H2><A NAME="21"></A>5. XF86Config Options </H2>

<p>The following new options are available for the <code>Pointer</code> section
of the <code>XF86Config</code> file.</p>

<H3><A NAME="22"></A>5.1. Buttons </H3>
<p>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.</p>
<p>Note that if you intend to assign Z axis movement to button events
using the <code>ZAxisMapping</code> option below, you need to take account
of those buttons into <code>N</code> too.</p>
<p>
<pre>
	Buttons N
</pre>
</p>

<H3><A NAME="23"></A>5.2. ZAxisMappping </H3>
<p>This option maps the Z axis (wheel) motion to a pair of buttons or to
another axis.</p>
<p>
<pre>
	ZAxisMapping X
	ZAxisMapping Y
	ZAxisMapping N M
</pre>
</p>
<p>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 <code>N</code> and positive Z axis motion to 
the button <code>M</code>.  If this option is used and the buttons <code>N</code> 
or <code>M</code> actually exists in the mouse, 
their actions won't be detected by the X server.</p>
<p>Currently this option can not be set in the <code>XF86Setup</code> program.
You need to edit the <code>XF86Config</code> file by hand to add this option.</p>

<H3><A NAME="24"></A>5.3. Resolution </H3>
<p>The following option will set the mouse device resolution to <code>N</code>
counts per inch, if possible:</p>
<p>
<pre>
	Resolution N
</pre>
</p>
<p>Not all mice and OSs can support this option.
This option can be set in the <code>XF86Setup</code> program.</p>

 <HR NOSHADE>
<A HREF="mouse.html"><EM>Mouse Support in XFree86</EM></A>
 <b>:</b> <EM>XF86Config Options </EM><BR>
<b>Previous:</b> <A HREF="mouse4.html"><EM>Configuring Your Mouse </EM></A><BR>
<b>Next:</b> <A HREF="mouse6.html"><EM>Mouse Gallery </EM></A>



</BODY>
</HTML>
