AC_DEFINE_UNQUOTED(ADDR2LINE, ["$ADDR2LINE"], [Path to addr2line])
fi
fi
+
+# Check for ttrace header files
+PKG_CHECK_MODULES(TTRACE,
+ [ttrace],
+ [have_ttrace="yes"], [have_ttrace="no"])
+
+if test "x$have_ttrace" = "xyes"; then
+ AC_DEFINE(ENABLE_TTRACE, 1, [ttrace available])
+fi
+
AM_CONDITIONAL(HAVE_LIBUNWIND, [test "x$HAVE_LIBUNWIND" = xyes])
AC_ARG_ENABLE(libwacom,
device->base.config.natural_scroll = &device->scroll.config_natural;
}
+int
+evdev_scroll_get_wheel_click_angle(struct evdev_device *device)
+{
+ return device->scroll.wheel_click_angle.x;
+}
+
static int
evdev_rotation_config_is_available(struct libinput_device *device)
{
void
evdev_init_natural_scroll(struct evdev_device *device);
+int
+evdev_scroll_get_wheel_click_angle(struct evdev_device *device);
+
void
evdev_notify_axis(struct evdev_device *device,
uint64_t time,
#include "libinput.h"
#include "libinput-util.h"
+#ifdef ENABLE_TTRACE
+#include <ttrace.h>
+
+#define TRACE_INPUT_BEGIN(NAME) traceBegin(TTRACE_TAG_INPUT, "INPUT:LIBINPUT:"#NAME)
+#define TRACE_INPUT_END() traceEnd(TTRACE_TAG_INPUT)
+#else
+#define TRACE_INPUT_BEGIN(NAME)
+#define TRACE_INPUT_END()
+#endif
+
#if LIBINPUT_VERSION_MICRO >= 90
#define HTTP_DOC_LINK "https://wayland.freedesktop.org/libinput/doc/latest/"
#else
return device->config.natural_scroll->get_default_enabled(device);
}
+LIBINPUT_EXPORT int
+libinput_device_config_scroll_get_wheel_click_angle(struct libinput_device *device)
+{
+ return evdev_scroll_get_wheel_click_angle((struct evdev_device *) device);
+}
+
LIBINPUT_EXPORT int
libinput_device_config_left_handed_is_available(struct libinput_device *device)
{
int
libinput_device_config_scroll_get_default_natural_scroll_enabled(struct libinput_device *device);
+int
+libinput_device_config_scroll_get_wheel_click_angle(struct libinput_device *device);
+
/**
* @ingroup config
*