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
This commit is contained in:
Michaël Bouchaud (yoz) 2019-01-31 08:41:04 -05:00 committed by Christopher Michael
parent ebc84e82ac
commit 72f9a94188
2 changed files with 19 additions and 0 deletions

View File

@ -310,6 +310,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
*

View File

@ -782,6 +782,14 @@ ecore_drm2_device_pointer_accel_profile_set(Ecore_Drm2_Device *device, uint32_t
elput_input_pointer_accel_profile_set(device->em, NULL, profile);
}
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)
{