[PATCH] Xi: define a default range of axis labels.

Peter Hutterer peter.hutterer at who-t.net
Sat Jan 24 23:22:38 PST 2009


On Fri, Jan 23, 2009 at 11:00:05PM -0800, Matt Helsley wrote:
> On Mon, 2009-01-19 at 23:23 +1100, Peter Hutterer wrote:
> > ATM, we are able to announce that a device has multiple axes, but clients have
> > to take educated guesses as to wether axis N is tilt, pressure, pan or
> > bananas. This patch introduces a set of default properties, initialized by the
> > server on init. Drivers can then take the AXIS_LABEL_PROP and fill it with the
> > matching labels to indicate to the client which axis does what. Clients can
> > query this property and adjust their user interface accordingly.
> > 
> > The range of labels is taken from linux/input.h, presumably that's the ones at
> > least the Linux kernel can give us for a device.
> > 
> > Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

[...]
> 
> A nit: "Rel" and "Abs" may be abbreviations end-users wouldn't
> recognize. Perhaps expanding them would be good.

Ideally, end users would never see these properties as they are abstracted
through matching GUI interfaces that label these properties with the correct
strings, matching the user's language etc. (one is allowed to hope).

I expect developers to be able to figure out what Rel and Abs stands for, so
while you're right that spelling it out may be more apropriate, I'm going to
be lazy and let it be. :)
 
Cheers,
  Peter



More information about the xorg mailing list