On Tue, Nov 07, 2017 at 08:49:04AM -0800, Jason Gerecke wrote: > The new "Pro Pen 3D" is sufficiently different from the other pen types > that it deserves new type. This makes it easier for userspace to provide > appropriate UI and suggested button assignments.
is it really that different though? afaict it's just another button on the pen and while the button may be used for zoom/pan/.., there's no real requirement for it. And judging by the way the pen looks, it's almost identical to previous pens. So i'm quite unsure about the need for this patch. Cheers, Peter > > Signed-off-by: Jason Gerecke <jason.gere...@wacom.com> > --- > data/libwacom.stylus | 2 +- > libwacom/libwacom-database.c | 2 ++ > libwacom/libwacom.c | 1 + > libwacom/libwacom.h | 3 ++- > 4 files changed, 6 insertions(+), 2 deletions(-) > > diff --git a/data/libwacom.stylus b/data/libwacom.stylus > index d030bf0..2a6d6c2 100644 > --- a/data/libwacom.stylus > +++ b/data/libwacom.stylus > @@ -97,7 +97,7 @@ Name=Pro Pen 3D > HasEraser=false > Buttons=3 > Axes=Tilt;Pressure;Distance; > -Type=General > +Type=3D > > [0x852] > # Intuos2 > diff --git a/libwacom/libwacom-database.c b/libwacom/libwacom-database.c > index 1241e99..c89e4ba 100644 > --- a/libwacom/libwacom-database.c > +++ b/libwacom/libwacom-database.c > @@ -93,6 +93,8 @@ type_from_str (const char *type) > return WSTYLUS_STROKE; > if (strcmp (type, "Puck") == 0) > return WSTYLUS_PUCK; > + if (strcmp (type, "3D") == 0) > + return WSTYLUS_3D; > return WSTYLUS_UNKNOWN; > } > > diff --git a/libwacom/libwacom.c b/libwacom/libwacom.c > index 5ab0ab5..262c400 100644 > --- a/libwacom/libwacom.c > +++ b/libwacom/libwacom.c > @@ -1147,6 +1147,7 @@ libwacom_print_stylus_description (int fd, const > WacomStylus *stylus) > case WSTYLUS_MARKER: type = "Marker"; break; > case WSTYLUS_STROKE: type = "Stroke"; break; > case WSTYLUS_PUCK: type = "Puck"; break; > + case WSTYLUS_3D: type = "3D"; break; > default: g_assert_not_reached(); break; > } > > diff --git a/libwacom/libwacom.h b/libwacom/libwacom.h > index d4c94ef..c01389b 100644 > --- a/libwacom/libwacom.h > +++ b/libwacom/libwacom.h > @@ -156,7 +156,8 @@ typedef enum { > WSTYLUS_CLASSIC, > WSTYLUS_MARKER, > WSTYLUS_STROKE, > - WSTYLUS_PUCK > + WSTYLUS_PUCK, > + WSTYLUS_3D, > } WacomStylusType; > > /** > -- > 2.15.0 > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel