AC_DEFINE_UNQUOTED([LIBINPUT_HIGHER_08], [0], [libinput version >= 0.8])
fi
+have_extra_touch_event="no"
+AC_CHECK_LIB(input, libinput_event_touch_get_major, [have_extra_touch_event="yes"])
+if test "x${have_extra_touch_event}" = "xyes";then
+ AC_DEFINE_UNQUOTED([LIBINPUT_SUPPORT_EXTRA_TOUCH_EVENT], [1], [libinput support extra touch event])
+fi
EFL_EVAL_PKGS([ECORE_DRM])
ev->multi.radius_y = 1;
ev->multi.pressure = 1.0;
ev->multi.angle = 0.0;
+#if LIBINPUT_SUPPORT_EXTRA_TOUCH_EVENT
+ if (libinput_event_get_type(libinput_event_touch_get_base_event(event))
+ == LIBINPUT_EVENT_TOUCH_DOWN)
+ {
+ if (libinput_event_touch_has_minor(event))
+ ev->multi.radius_x = libinput_event_touch_get_minor(event);
+ if (libinput_event_touch_has_major(event))
+ ev->multi.radius_y = libinput_event_touch_get_major(event);
+ if (libinput_event_touch_has_pressure(event))
+ ev->multi.pressure = libinput_event_touch_get_pressure(event);
+ if (libinput_event_touch_has_orientation(event))
+ ev->multi.angle = libinput_event_touch_get_orientation(event);
+ }
+#endif
ev->multi.x = ev->x;
ev->multi.y = ev->y;
ev->multi.root.x = ev->x;
ev->multi.radius_y = 1;
ev->multi.pressure = 1.0;
ev->multi.angle = 0.0;
+#if LIBINPUT_SUPPORT_EXTRA_TOUCH_EVENT
+ if (libinput_event_touch_has_minor(event))
+ ev->multi.radius_x = libinput_event_touch_get_minor(event);
+ if (libinput_event_touch_has_major(event))
+ ev->multi.radius_y = libinput_event_touch_get_major(event);
+ if (libinput_event_touch_has_pressure(event))
+ ev->multi.pressure = libinput_event_touch_get_pressure(event);
+ if (libinput_event_touch_has_orientation(event))
+ ev->multi.angle = libinput_event_touch_get_orientation(event);
+#endif
ev->multi.x = ev->x;
ev->multi.y = ev->y;
ev->multi.root.x = ev->x;