[PATCH] improved mouse pointer acceleration

Daniel Stone daniel at fooishbar.org
Tue Jun 5 02:19:15 PDT 2007


On Tue, Jun 05, 2007 at 10:50:27AM +0200, Simon Thum wrote:
> Daniel Stone wrote:
>> On Mon, Jun 04, 2007 at 08:09:34PM +0200, Soeren Sandmann wrote:
>>> It looks like your patch simply hardcodes a bunch of acceleration
>>> scheme. Did you consider writing a new extension that would allow
>>> clients to set the acceleration scheme more generally, say be
>>> uploading the coefficients of a polynomium of something?
>> Don't write a new extension.  We already have device controls for this.
> Right, and they can be used to tune the functions.
> But on the other hand, it would be desirable to have more felixbility on 
> the long run, e.g. in MacOS you can supply a function defined 
> point-by-point (probably interpolated somehow).
>
> This could be added without breaking ABI after the patch is in, since it 
> bears some extension points (though no extension of its own). I have 
> avoided hardcoding stuff. New profiles can be introduced easily, it's just 
> a matter of configuration to select them.
>
> However, 'uploading coefficients' is one of the things I would like to have 
> but I decided to see if input-hotplug will ship with an approriate 
> (generic?) runtime device configuration mechanism. Maybe I just missed it?

You can pass arbitrary data through X{Change,Get}DeviceControl.  Just
define a new DEVICE_foo and new control structures.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20070605/bdd91f57/attachment.pgp>


More information about the xorg mailing list