summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-08-24 11:32:51 -0400
committerChris Michael <cp.michael@samsung.com>2017-08-24 11:32:51 -0400
commitb43f6c14ddfd39bc8402e62ba6eb4f58436266f4 (patch)
tree5fc6f68a4aa4d4f472f477d40a65b7bc4a10e246 /src/lib/ecore_drm2
parentd798eca247b6b2bca5cf83b9a72bc132d35dc1bc (diff)
ecore-drm2: Add API function to allow setting pointer acceleration speed
Small patch to add a new API function which can be called from Enlightenment in order to allow setting pointer acceleration speed. 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 e1609adac2..f9055fb927 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -273,6 +273,17 @@ EAPI void ecore_drm2_device_window_set(Ecore_Drm2_Device *device, unsigned int w
273EAPI void ecore_drm2_device_pointer_max_set(Ecore_Drm2_Device *device, int w, int h); 273EAPI void ecore_drm2_device_pointer_max_set(Ecore_Drm2_Device *device, int w, int h);
274 274
275/** 275/**
276 * Set pointer acceleration speed
277 *
278 * @param device
279 * @param speed
280 *
281 * @ingroup Ecore_Drm2_Device_Group
282 * @since 1.21
283 */
284EAPI void ecore_drm2_device_pointer_accel_speed_set(Ecore_Drm2_Device *device, double speed);
285
286/**
276 * Set pointer value rotation 287 * Set pointer value rotation
277 * 288 *
278 * @param device 289 * @param device
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index e5a41fd9c8..0c633b95c4 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -775,6 +775,14 @@ ecore_drm2_device_pointer_rotation_set(Ecore_Drm2_Device *device, int rotation)
775} 775}
776 776
777EAPI void 777EAPI void
778ecore_drm2_device_pointer_accel_speed_set(Ecore_Drm2_Device *device, double speed)
779{
780 EINA_SAFETY_ON_NULL_RETURN(device);
781
782 elput_input_pointer_accel_speed_set(device->em, NULL, speed);
783}
784
785EAPI void
778ecore_drm2_device_window_set(Ecore_Drm2_Device *device, unsigned int window) 786ecore_drm2_device_window_set(Ecore_Drm2_Device *device, unsigned int window)
779{ 787{
780 EINA_SAFETY_ON_NULL_RETURN(device); 788 EINA_SAFETY_ON_NULL_RETURN(device);