[PATCH libinput 6/8] tablet: support tool-specific pressure offsets

Bill Spitzak spitzak at gmail.com
Tue Dec 1 18:48:41 PST 2015


On Tue, Dec 1, 2015 at 5:46 PM, Peter Hutterer <peter.hutterer at who-t.net>
wrote:

>
> +       switch (tool->type) {
> +       case LIBINPUT_TABLET_TOOL_TYPE_PEN:
> +               strtype = "PEN";
> +               break;
> +       case LIBINPUT_TABLET_TOOL_TYPE_BRUSH:
> +               strtype = "BRUSH";
> +               break;
> +       case LIBINPUT_TABLET_TOOL_TYPE_AIRBRUSH:
> +               strtype = "AIRBRUSH";
> +               break;
> +       case LIBINPUT_TABLET_TOOL_TYPE_PENCIL:
> +               strtype = "PENCIL";
> +               break;
> +       case LIBINPUT_TABLET_TOOL_TYPE_ERASER:
> +               strtype = "RUBBER";
> +               break;
>
> Is there a good reason for this inconsistency in the strings? Ie why isn't
the last strtype "ERASER".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20151201/d330b06a/attachment.html>


More information about the wayland-devel mailing list