On Fri, Mar 15, 2002 at 08:57:50PM +0100, Frank v Waveren wrote:
>On Fri, Mar 15, 2002 at 10:17:12AM -0500, David Dawes wrote:
>> The XFree86 mouse acceleration code has been using a different
>> algorithm from this (a smooth one) for a few years when the threshold
>> is set to 0.  The traditional algorithm is still used when the
>> threshold is non-zero.
>Not quite true for my X server (XFree86 4.1.0) setting thresh to 0
>gets no acceleration.

That depends on what you also set the acceleration parameter to.
If you try 'xset m 2 0' the acceleration should be obvious.  The
threshold == 0 algorithm in XFree86 since at least 4.0 uses a power
function, with the power depending on the acceleration parameter.
See the source code.

>xset m default (XChangePointerControl(dpy, 1, 1,
>-1, -1) however gets a nice smoothly accelerated cursor (which I'm 
>using already, just never payed enough attention to it apparantly). It

Which happens to result in the traditional algorithm being used, with
defaults of 4 for the threshold and 2 for the acceleration.

>might be nice to document this, though I don't know where... Perhaps
>in man xset, which is where the average user will expect the info, but
>it really is just a question of how the server behaves I guess.

The defaults are built-in to the X server.

David
--
David Dawes
Senior X Architect                              Tungsten Graphics, Inc
www.XFree86.org/~dawes                          www.tungstengraphics.com
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to