aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm2/ecore_drm2_device.c
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/ecore_drm2_device.c
parentecore-drm2: Add API function to allow setting pointer acceleration speed (diff)
downloadefl-474da251658b7d7442756f9b957d86e5776e5928.tar.gz
ecore-drm2: Add API to allow setting pointer acceleration profile
Small patch to allow setting pointer acceleration profile (for wayland) from within Enlightenment. ref https://phab.enlightenment.org/T4736 @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_device.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c8
1 files changed, 8 insertions, 0 deletions
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);