devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0416aa6bf34f19d618d84344f6cfd22f4774609f

commit 0416aa6bf34f19d618d84344f6cfd22f4774609f
Author: Chris Michael <cpmich...@osg.samsung.com>
Date:   Thu May 26 10:43:35 2016 -0400

    ecore-drm2: Add API function to calibrate input devices
    
    This adds a new API function that Ecore_Evas can call to calibrate
    input devices given size of the output
    
    Signed-off-by: Chris Michael <cpmich...@osg.samsung.com>
---
 src/lib/ecore_drm2/Ecore_Drm2.h        | 12 ++++++++++++
 src/lib/ecore_drm2/ecore_drm2_device.c |  8 ++++++++
 2 files changed, 20 insertions(+)

diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index c083d1a..d8a1c3e 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -269,6 +269,18 @@ EAPI unsigned int 
*ecore_drm2_device_crtcs_get(Ecore_Drm2_Device *device, int *n
 EAPI void ecore_drm2_device_screen_size_range_get(Ecore_Drm2_Device *device, 
int *minw, int *minh, int *maxw, int *maxh);
 
 /**
+ * Calibrate any input devices for given screen size
+ *
+ * @param device
+ * @param w
+ * @param h
+ *
+ * @ingroup Ecore_Drm2_Device_Group
+ * @since 1.18
+ */
+EAPI void ecore_drm2_device_calibrate(Ecore_Drm2_Device *device, int w, int h);
+
+/**
  * @defgroup Ecore_Drm2_Output_Group Drm output functions
  *
  * Functions that deal with setup of outputs
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c 
b/src/lib/ecore_drm2/ecore_drm2_device.c
index df4f991..b4948d4 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -289,3 +289,11 @@ ecore_drm2_device_screen_size_range_get(Ecore_Drm2_Device 
*device, int *minw, in
    if (maxw) *maxw = device->max.width;
    if (maxh) *maxh = device->max.height;
 }
+
+EAPI void
+ecore_drm2_device_calibrate(Ecore_Drm2_Device *device, int w, int h)
+{
+   EINA_SAFETY_ON_NULL_RETURN(device);
+
+   elput_input_devices_calibrate(device->em, w, h);
+}

-- 


Reply via email to