diff options
author | Michaƫl Bouchaud (yoz) <yoz@efl.so> | 2019-01-31 08:41:04 -0500 |
---|---|---|
committer | Christopher Michael <cp.michael@samsung.com> | 2019-01-31 08:41:04 -0500 |
commit | 72f9a94188464c22649f75b74de858f1f395d983 (patch) | |
tree | dd8509bb6c52d4cfd8e01a623a635a98fbfc4674 /src/lib/ecore_drm2 | |
parent | ebc84e82acbec68013815bbc88b90173f0d53438 (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
Diffstat (limited to 'src/lib/ecore_drm2')
-rw-r--r-- | src/lib/ecore_drm2/Ecore_Drm2.h | 11 | ||||
-rw-r--r-- | src/lib/ecore_drm2/ecore_drm2_device.c | 8 |
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, | |||
311 | EAPI Eina_Bool ecore_drm2_device_pointer_rotation_set(Ecore_Drm2_Device *device, int rotation); | 311 | EAPI 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 | */ | ||
322 | EAPI 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 | ||
785 | EAPI void | 785 | EAPI void |
786 | ecore_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 | |||
793 | EAPI void | ||
786 | ecore_drm2_device_window_set(Ecore_Drm2_Device *device, unsigned int window) | 794 | ecore_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); |