devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=474da251658b7d7442756f9b957d86e5776e5928
commit 474da251658b7d7442756f9b957d86e5776e5928 Author: Chris Michael <[email protected]> Date: Thu Aug 24 11:42:57 2017 -0400 ecore-drm2: Add API to allow setting pointer acceleration profile Small patch to allow setting pointer acceleration profile (for wayland) from within Enlightenment. ref T4736 @feature Signed-off-by: Chris Michael <[email protected]> --- src/lib/ecore_drm2/Ecore_Drm2.h | 11 +++++++++++ src/lib/ecore_drm2/ecore_drm2_device.c | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h index f9055fb927..19f00cf929 100644 --- a/src/lib/ecore_drm2/Ecore_Drm2.h +++ b/src/lib/ecore_drm2/Ecore_Drm2.h @@ -284,6 +284,17 @@ EAPI void ecore_drm2_device_pointer_max_set(Ecore_Drm2_Device *device, int w, in EAPI void ecore_drm2_device_pointer_accel_speed_set(Ecore_Drm2_Device *device, double speed); /** + * Set pointer acceleration profile + * + * @param device + * @param profile + * + * @ingroup Ecore_Drm2_Device_Group + * @since 1.21 + */ +EAPI void ecore_drm2_device_pointer_accel_profile_set(Ecore_Drm2_Device *device, uint32_t profile); + +/** * Set pointer value rotation * * @param device diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c index 0c633b95c4..21963c98fb 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_speed_set(Ecore_Drm2_Device *device, double spee } EAPI void +ecore_drm2_device_pointer_accel_profile_set(Ecore_Drm2_Device *device, uint32_t profile) +{ + EINA_SAFETY_ON_NULL_RETURN(device); + + elput_input_pointer_accel_profile_set(device->em, NULL, profile); +} + +EAPI void ecore_drm2_device_window_set(Ecore_Drm2_Device *device, unsigned int window) { EINA_SAFETY_ON_NULL_RETURN(device); --
