summaryrefslogtreecommitdiff
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
parentebc84e82acbec68013815bbc88b90173f0d53438 (diff)
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 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,
311EAPI Eina_Bool ecore_drm2_device_pointer_rotation_set(Ecore_Drm2_Device *device, int rotation); 311EAPI Eina_Bool ecore_drm2_device_pointer_rotation_set(Ecore_Drm2_Device *device, int rotation);
312 312
313/** 313/**
314 * Enable or disable pointer tap-to-click
315 *
316 * @param device
317 * @param enabled
318 *
319 * @ingroup Ecore_Drm2_Device_Group
320 * @since 1.22
321 */
322EAPI void ecore_drm2_device_touch_tap_to_click_enabled_set(Ecore_Drm2_Device *device, Eina_Bool enabled);
323
324/**
314 * Set info to be used on keyboards 325 * Set info to be used on keyboards
315 * 326 *
316 * @param device 327 * @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
783} 783}
784 784
785EAPI void 785EAPI void
786ecore_drm2_device_touch_tap_to_click_enabled_set(Ecore_Drm2_Device *device, Eina_Bool enabled)
787{
788 EINA_SAFETY_ON_NULL_RETURN(device);
789
790 elput_input_touch_tap_to_click_enabled_set(device->em, NULL, enabled);
791}
792
793EAPI void
786ecore_drm2_device_window_set(Ecore_Drm2_Device *device, unsigned int window) 794ecore_drm2_device_window_set(Ecore_Drm2_Device *device, unsigned int window)
787{ 795{
788 EINA_SAFETY_ON_NULL_RETURN(device); 796 EINA_SAFETY_ON_NULL_RETURN(device);