[Y-devel] Widget set progress
Kris Van Hees aedil-y-devel at alchar.org
Sat Apr 17 16:54:15 BST 2004
I know I am kind of jumping in the midst of this discussion, but can we simply
provide a way to retrieve how many buttons and axes there are? Then the client
(or library) code can simply request those it wants based on what pointing
device is known to be in use.
It is needed anyway, because in order to do what you describe below with Gimp,
the client application needs to be know that you are using a pointing device
that has the capability to do that. So it needs to get that information from
the Y windows server somehow. In that sense, you might as well implement some
form of 'configuration request' that tells you e.g. how many pointing devices
there are, and then you can request the config of each pointing device, which
could return things like name, number of buttons, number of axes (and whatever
else is needed to identify it as something specific).
The application then requests data about the state of the pointing device where
needed. Pressure is obviously an axis value, whereas buttons truly are a real
switch value (up or down).
Does that make sense? A value is either discrete or not, so switches and axes
ought to cover it all. Specific 'device modules' can deal with the
interpretation of it all.
Kris
On Sat, Apr 17, 2004 at 10:00:46AM -0400, Thomas wrote:
> On Friday 16 April 2004 01:23, Thorsten Wilms wrote:
>
> > Well, taking any and all possible pointing devices into account
> > will be too hard, I think.
> > But the most common options besides mice have to be considered.
> > For the tablett the only extra that has to be dealt with is
> > pressure.
> >
>
> Not true at all. In addition to pressure, newer tablets will also provide
> information such as the "tilt" of the pen (ie, the angle between the pen and
> the tablet, in the x and y dimensions). the pen on my intuos has 6 axes.
>
> plus, different parts of the pen correspond to different devices. for
> example, there is a "pen" part and an "eraser" part, so i could select one
> tool in the gimp with the pen part, and select another tool with the eraser
> part, when i flip the pen around to use the eraser, the gimp automatically
> switches to the eraser's tool.
>
> Linux is making a lot of progress in the computer graphics field, and ruling
> out anything that is too far from a mouse would certainly hinder Y's adoption
> when the time comes.
>
> Also, adding a common joystick interface would make it easier to write cross
> platform Y programs which need a joystick.
>
> Thomas Stephens
> spiralman at softhome.net
>
--
Never underestimate a Mage with:
- the Intelligence to cast Magic Missile,
- the Constitution to survive the first hit, and
- the Dexterity to run fast enough to avoid being hit a second time.
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved