[PATCH evdev] evdev: added property Evdev Axes Rotation. #27688
Peter Hutterer
peter.hutterer at who-t.net
Sun Oct 31 19:14:49 PDT 2010
On Fri, Oct 29, 2010 at 10:12:33AM +0200, Benjamin Tissoires wrote:
> Hi,
>
> Le 29/10/2010 07:37, Peter Hutterer a écrit :
> >On Sun, Oct 24, 2010 at 01:45:03PM +0200, Paolo D'Apice wrote:
> >>The evdev driver does not allow to set a custom axes rotation
> >>as the mousedrv driver does with the option "AngleOffset".
> >>This option is necessary for some trackballs, for example the
> >>Logitech Cordless Optical TrackMan which has the optical
> >>sensor off-axes (in MS Windows, the Logitech proprietary driver
> >>adjusts the offset).
> >>
> >>X.Org Bug 27688<http://bugs.freedesktop.org/show_bug.cgi?id=27688>
> >>
> >>Signed-off-by: Paolo D'Apice<dapicester at gmail.com>
> >
> >this patch seems simple enough that we could add it to the server as a
> >standard property for pointer devices, isn't it? I'd much prefer that so we
> >don't have to re-implement it for the various drivers.
>
> But isn't it already in the server?
> Since 1.9 and commit "dix: add 3x3 transformation matrix xinput
> property for multi-head handling", we already have a property
> "Coordinate Transformation Matrix" that can handle arbitrary
> transformation matrix. And a rotation can be seen as a matrix, no???
>
> It's clear that a matrix is not very easy to handle by human people,
> but we just need a tool that provide it.... ;)
right, that's the easy part. right now the property isn't hooked up for
relative devices, so afaict that needs to be the first step. A quick hack
shows some rather weird results, which suggests that it's not quite as
trivial as I hoped it'd be.
CC-ing Simon and Peter, not sure what happend to the relative device
transformation plans.
http://lists.x.org/archives/xorg-devel/2010-May/008116.html
Cheers,
Peter
More information about the xorg-devel
mailing list