On Mon, Jul 11, 2011 at 09:49:29AM -0600, Erich Hoover wrote:
> On Sun, Jul 10, 2011 at 6:08 PM, Peter Hutterer 
> <[email protected]>wrote:
> 
> > ...
> > > I pulled out three of the five models we have and they have the following
> > > ids:
> > > 0x005: HP tc1100 (has pen buttons)
> > > 0x006: HP tc4200 (has pen buttons)
> > > 0x004: HP 2710p (no pen buttons)
> >
> > What's the full PNPID string? I ask because I think 0x5 and 0x6 are already
> > in use for some wacom tablets.
> >
> 
> If it's the string I think it is, it appears to be "WACF00X:00" (where X is
> 5 or 6 for the tablets in question).  These tablets aren't exactly new tech
> - the tc1100 came out in something like 2004 - so I would expect that the
> ids are already well known.  Anyway, the packet sent when the button push
> occurs is clearly very unique - so its not like some other action is going
> to accidentally trigger this code.

right, if it's appended by :00 that can actually be the unique identifier.
AFAIK, all wacom tablets are WACf00X only.

> >  ...
> > On a general basis: rather than trickery with magic bits, I'd be nicer to
> > get a new set of BTN_...  defines into the kernel. We can then use that in
> > the driver without having to use hacks. For kernels that don't support it,
> > we can still #define that with the same value. Makes sense?
> >
> 
> Yes, do you think these should be BTN_* or KEY_* defines?

in this case, probably KEY_*.

> For this particular use-case: there is a KEY_KEYBOARD already which may be
> > suitable here (ask on linux-input) and I wonder if KEY_EDITOR would be
> > suitable for the "writing tool" (whatever that is). There is no rotation
> > button or key yet afaict.
> >
> 
> The "writing tool" button is originally intended to bring up a "journal"
> (pen writing) program.  On the newer models this button doesn't actually
> exist, instead there is a button with a giant "Q" that is supposed to open a
> GUI menu.  So, we set this button to open the writing program to match the
> older model - but it should probably have its own button code instead.  Is
> it correct to assume from the way this discussion is headed that these
> buttons should really emit these keycodes rather than pad button pushes?

yes, I think so. buttons are just that - buttons. They are labelled to some
extent but most applications only treat them as numbered buttons (until XI2
and button labelling becomes more prominently used client-side).
keys are handled properly already. So IMO these buttons are essentially
multi-media keys similar to the ones on many keyboards.

that would save us a lot of work, fit nicely into the existing stack and
should even make things work out-of-the box.

Cheers,
  Peter

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to