devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7b5af2f0df36e896878c3609ec870ecd73c953f5

commit 7b5af2f0df36e896878c3609ec870ecd73c953f5
Author: Chris Michael <[email protected]>
Date:   Tue May 24 09:32:21 2016 -0400

    ecore-drm2: Add API function to set left-handed mouse mode
    
    This commit adds an API function used to set a mouse to be left-handed
    
    @feature
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/ecore_drm2/Ecore_Drm2.h        | 13 +++++++++++++
 src/lib/ecore_drm2/ecore_drm2_device.c |  8 ++++++++
 2 files changed, 21 insertions(+)

diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index 4872793..0afe105 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -206,6 +206,19 @@ EAPI void 
ecore_drm2_device_pointer_xy_get(Ecore_Drm2_Device *device, int *x, in
 EAPI void ecore_drm2_device_pointer_warp(Ecore_Drm2_Device *device, int x, int 
y);
 
 /**
+ * Set a left handed mode for the given device
+ *
+ * @param device
+ * @param left
+ *
+ * @return EINA_TRUE on success, EINA_FALSE otherwise
+ *
+ * @ingroup Ecore_Drm2_Device_Group
+ * @since 1.18
+ */
+EAPI Eina_Bool ecore_drm2_device_pointer_left_handed_set(Ecore_Drm2_Device 
*device, Eina_Bool left);
+
+/**
  * Set which window is to be used for input events
  *
  * @param device
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c 
b/src/lib/ecore_drm2/ecore_drm2_device.c
index 5c42902..1e9ded8 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -240,6 +240,14 @@ ecore_drm2_device_pointer_warp(Ecore_Drm2_Device *device, 
int x, int y)
    elput_input_pointer_xy_set(device->em, NULL, x, y);
 }
 
+EAPI Eina_Bool
+ecore_drm2_device_pointer_left_handed_set(Ecore_Drm2_Device *device, Eina_Bool 
left)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(device, EINA_FALSE);
+
+   return elput_input_pointer_left_handed_set(device->em, NULL, left);
+}
+
 EAPI void
 ecore_drm2_device_window_set(Ecore_Drm2_Device *device, unsigned int window)
 {

-- 


Reply via email to