[PATCH] Add support for per-axis valuator modes (Relative/Absolute)
Chase Douglas
chase.douglas at canonical.com
Thu Oct 21 20:15:34 PDT 2010
On Fri, 2010-10-22 at 13:05 +1000, Peter Hutterer wrote:
> From: Chase Douglas <chase.douglas at canonical.com>
>
> The XI2 protocol supports per-axis modes, but the server so far does
> not. This change adds support in the server.
>
> A complication is the fact that XI1 does not support per-axis modes.
> The solution provided here is to set a per-device mode that defines the
> mode of at least the first two valuators (X and Y). The per-axis
> valuator mode defaults to Relative, so any absolute axes must be
> explicitly set.
I realized after reading this through once more that this last sentence
is a relic of a previous patch incarnation. Each axis *must* be
initialized as either relative or absolute when calling
InitValuatorAxisStruct, so there's no "default" behavior anymore.
Deleting this sentence should be sufficient.
-- Chase
More information about the xorg-devel
mailing list