tablet: drop LIBINPUT_TOOL_NONE from the public API

This is only used internally.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: Stephen Chandler Paul <thatslyude@gmail.com>
This commit is contained in:
Peter Hutterer 2015-02-19 10:59:46 +10:00
parent d0805e41d2
commit 585c30e01e
3 changed files with 1 additions and 4 deletions

View file

@ -27,6 +27,7 @@
#include "evdev.h"
#define LIBINPUT_TABLET_AXIS_NONE 0
#define LIBINPUT_TOOL_NONE 0
enum tablet_status {
TABLET_NONE = 0,

View file

@ -159,7 +159,6 @@ struct libinput_tool;
* LIBINPUT_DEVICE_CAP_TABLET capability.
*/
enum libinput_tool_type {
LIBINPUT_TOOL_NONE = -1,
LIBINPUT_TOOL_PEN = 0x140, /* Matches BTN_TOOL_PEN */
LIBINPUT_TOOL_ERASER,
LIBINPUT_TOOL_BRUSH,

View file

@ -340,9 +340,6 @@ print_proximity_event(struct libinput_event *ev)
double dist, pressure;
switch (libinput_tool_get_type(tool)) {
case LIBINPUT_TOOL_NONE:
tool_str = "none";
break;
case LIBINPUT_TOOL_PEN:
tool_str = "pen";
break;