summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_device.c
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-05-04 11:03:15 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-05-27 11:57:53 -0400
commit296d233f64327d87d318093b2504b58834c5bc85 (patch)
tree0bf6b18ca320f26fcd03c957c18d37099758690e /src/lib/ecore_drm2/ecore_drm2_device.c
parentd2b4176592c6f0e6bd2a78c7a620f29142b65575 (diff)
ecore-drm2: Add API functions to get and set pointer position
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_device.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index b47028bdf4..f352b30795 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -182,3 +182,22 @@ ecore_drm2_device_cursor_size_get(Ecore_Drm2_Device *device, int *width, int *he
182 if (ret == 0) *height = caps; 182 if (ret == 0) *height = caps;
183 } 183 }
184} 184}
185
186EAPI void
187ecore_drm2_device_pointer_xy_get(Ecore_Drm2_Device *device, int *x, int *y)
188{
189 if (x) *x = 0;
190 if (y) *y = 0;
191
192 EINA_SAFETY_ON_NULL_RETURN(device);
193
194 elput_input_pointer_xy_get(device->em, NULL, x, y);
195}
196
197EAPI void
198ecore_drm2_device_pointer_warp(Ecore_Drm2_Device *device, int x, int y)
199{
200 EINA_SAFETY_ON_NULL_RETURN(device);
201
202 elput_input_pointer_xy_set(device->em, NULL, x, y);
203}