This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch devs/devilhorns/apos
in repository efl.
View the commit online.
commit 868a0b42ac358ae4e429940a4d3245acf25c48fb
Author: Christopher Michael <devilho...@comcast.net>
AuthorDate: Wed Jan 17 07:32:13 2024 -0500
ecore_drm2: Add API to return pointer position
---
src/lib/ecore_drm2/Ecore_Drm2.h | 1 +
src/lib/ecore_drm2/ecore_drm2_device.c | 12 ++++++++++++
2 files changed, 13 insertions(+)
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index ce89c76554..e1c40041e5 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -83,6 +83,7 @@ EAPI Eina_Bool ecore_drm2_device_pointer_rotation_set(Ecore_Drm2_Device *dev, in
EAPI void ecore_drm2_device_calibrate(Ecore_Drm2_Device *dev, int w, int h);
EAPI Eina_Bool ecore_drm2_device_vt_set(Ecore_Drm2_Device *dev, int vt);
EAPI int ecore_drm2_device_clock_id_get(Ecore_Drm2_Device *dev);
+EAPI void ecore_drm2_device_pointer_xy_get(Ecore_Drm2_Device *dev, int *x, int *y);
/* Display API functions */
EAPI char *ecore_drm2_display_name_get(Ecore_Drm2_Display *disp);
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index a36e7c8c76..c998166b79 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -462,3 +462,15 @@ ecore_drm2_device_clock_id_get(Ecore_Drm2_Device *dev)
return dev->clock_id;
}
+
+EAPI void
+ecore_drm2_device_pointer_xy_get(Ecore_Drm2_Device *dev, int *x, int *y)
+{
+ if (x) *x = 0;
+ if (y) *y = 0;
+
+ EINA_SAFETY_ON_NULL_RETURN(dev);
+ EINA_SAFETY_ON_NULL_RETURN(dev->em);
+
+ elput_input_pointer_xy_get(dev->em, NULL, x, y);
+}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.