[PATCH libinput 5/5] tablet: remove the libinput_tablet_tool_axis enum from the public API
Peter Hutterer
peter.hutterer at who-t.net
Sun Dec 13 18:00:14 PST 2015
Internally we still use it, at least for now.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/libinput-private.h | 16 ++++++++++++++--
src/libinput.h | 21 ---------------------
2 files changed, 14 insertions(+), 23 deletions(-)
diff --git a/src/libinput-private.h b/src/libinput-private.h
index 38a14b8..16e3dda 100644
--- a/src/libinput-private.h
+++ b/src/libinput-private.h
@@ -33,8 +33,6 @@
#include "libinput.h"
#include "libinput-util.h"
-#define LIBINPUT_TABLET_TOOL_AXIS_MAX LIBINPUT_TABLET_TOOL_AXIS_REL_WHEEL
-
struct libinput_source;
/* A coordinate pair in device coordinates */
@@ -250,6 +248,20 @@ struct libinput_device {
struct libinput_device_config config;
};
+enum libinput_tablet_tool_axis {
+ LIBINPUT_TABLET_TOOL_AXIS_X = 1,
+ LIBINPUT_TABLET_TOOL_AXIS_Y = 2,
+ LIBINPUT_TABLET_TOOL_AXIS_DISTANCE = 3,
+ LIBINPUT_TABLET_TOOL_AXIS_PRESSURE = 4,
+ LIBINPUT_TABLET_TOOL_AXIS_TILT_X = 5,
+ LIBINPUT_TABLET_TOOL_AXIS_TILT_Y = 6,
+ LIBINPUT_TABLET_TOOL_AXIS_ROTATION_Z = 7,
+ LIBINPUT_TABLET_TOOL_AXIS_SLIDER = 8,
+ LIBINPUT_TABLET_TOOL_AXIS_REL_WHEEL = 9,
+};
+
+#define LIBINPUT_TABLET_TOOL_AXIS_MAX LIBINPUT_TABLET_TOOL_AXIS_REL_WHEEL
+
struct libinput_tablet_tool {
struct list link;
uint32_t serial;
diff --git a/src/libinput.h b/src/libinput.h
index 786f869..dc580c0 100644
--- a/src/libinput.h
+++ b/src/libinput.h
@@ -137,27 +137,6 @@ enum libinput_pointer_axis_source {
/**
* @ingroup device
*
- * Available axis types for a device. It must have the @ref
- * LIBINPUT_DEVICE_CAP_TABLET_TOOL capability.
- *
- * For details on the interpretation of these axes see
- * libinput_event_tablet_tool_get_axis_value().
- */
-enum libinput_tablet_tool_axis {
- LIBINPUT_TABLET_TOOL_AXIS_X = 1,
- LIBINPUT_TABLET_TOOL_AXIS_Y = 2,
- LIBINPUT_TABLET_TOOL_AXIS_DISTANCE = 3,
- LIBINPUT_TABLET_TOOL_AXIS_PRESSURE = 4,
- LIBINPUT_TABLET_TOOL_AXIS_TILT_X = 5,
- LIBINPUT_TABLET_TOOL_AXIS_TILT_Y = 6,
- LIBINPUT_TABLET_TOOL_AXIS_ROTATION_Z = 7,
- LIBINPUT_TABLET_TOOL_AXIS_SLIDER = 8,
- LIBINPUT_TABLET_TOOL_AXIS_REL_WHEEL = 9,
-};
-
-/**
- * @ingroup device
- *
* An object representing a tool being used by a device with the @ref
* LIBINPUT_DEVICE_CAP_TABLET_TOOL capability.
*
--
2.5.0
More information about the wayland-devel
mailing list