summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-08-24 11:42:57 -0400
committerChris Michael <cp.michael@samsung.com>2017-08-24 11:42:57 -0400
commit474da251658b7d7442756f9b957d86e5776e5928 (patch)
treed15d9f0397d3dc228bfe270acbecdab9722c922d /src/lib/ecore_drm2
parentb43f6c14ddfd39bc8402e62ba6eb4f58436266f4 (diff)
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 <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm2')
-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 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
284EAPI void ecore_drm2_device_pointer_accel_speed_set(Ecore_Drm2_Device *device, double speed); 284EAPI void ecore_drm2_device_pointer_accel_speed_set(Ecore_Drm2_Device *device, double speed);
285 285
286/** 286/**
287 * Set pointer acceleration profile
288 *
289 * @param device
290 * @param profile
291 *
292 * @ingroup Ecore_Drm2_Device_Group
293 * @since 1.21
294 */
295EAPI void ecore_drm2_device_pointer_accel_profile_set(Ecore_Drm2_Device *device, uint32_t profile);
296
297/**
287 * Set pointer value rotation 298 * Set pointer value rotation
288 * 299 *
289 * @param device 300 * @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
783} 783}
784 784
785EAPI void 785EAPI void
786ecore_drm2_device_pointer_accel_profile_set(Ecore_Drm2_Device *device, uint32_t profile)
787{
788 EINA_SAFETY_ON_NULL_RETURN(device);
789
790 elput_input_pointer_accel_profile_set(device->em, NULL, profile);
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);