aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichaƫl Bouchaud (yoz) <yoz@efl.so>2019-01-31 08:41:04 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-01-31 08:41:04 -0500
commit72f9a94188464c22649f75b74de858f1f395d983 (patch)
treedd8509bb6c52d4cfd8e01a623a635a98fbfc4674
parentelput: Add API to allow settings tap-to-click on pointer device (diff)
downloadefl-72f9a94188464c22649f75b74de858f1f395d983.tar.gz
ecore_drm2: Add API to allow settings tap-to-click on pointer device
Summary: Add a way to configure pointer device with tap-to-click features. @feature Depends on https://phab.enlightenment.org/D7843 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7847
-rw-r--r--src/lib/ecore_drm2/Ecore_Drm2.h11
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c8
2 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index fb1884be2d..fed477f56c 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -311,6 +311,17 @@ EAPI void ecore_drm2_device_pointer_accel_profile_set(Ecore_Drm2_Device *device,
EAPI Eina_Bool ecore_drm2_device_pointer_rotation_set(Ecore_Drm2_Device *device, int rotation);
/**
+ * Enable or disable pointer tap-to-click
+ *
+ * @param device
+ * @param enabled
+ *
+ * @ingroup Ecore_Drm2_Device_Group
+ * @since 1.22
+ */
+EAPI void ecore_drm2_device_touch_tap_to_click_enabled_set(Ecore_Drm2_Device *device, Eina_Bool enabled);
+
+/**
* Set info to be used on keyboards
*
* @param device
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index 9108db6ff8..b4ca722b22 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -783,6 +783,14 @@ ecore_drm2_device_pointer_accel_profile_set(Ecore_Drm2_Device *device, uint32_t
}
EAPI void
+ecore_drm2_device_touch_tap_to_click_enabled_set(Ecore_Drm2_Device *device, Eina_Bool enabled)
+{
+ EINA_SAFETY_ON_NULL_RETURN(device);
+
+ elput_input_touch_tap_to_click_enabled_set(device->em, NULL, enabled);
+}
+
+EAPI void
ecore_drm2_device_window_set(Ecore_Drm2_Device *device, unsigned int window)
{
EINA_SAFETY_ON_NULL_RETURN(device);