summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/drm
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-01-25 16:20:27 -0600
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-18 15:50:16 -0500
commitd53e1d6748f07f46e9c6abc791651cdc78c0bc86 (patch)
treef9fad8386d8af0d335e9da739825ff2b46543f10 /src/modules/ecore_evas/engines/drm
parentddc6962d775345ccb0eb4590486693efb3564075 (diff)
ecore_evas_drm: enable pointer warping
Use ecore_drm_device_pointer_warp() to warp the pointer
Diffstat (limited to 'src/modules/ecore_evas/engines/drm')
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index 63b794978b..8b5e4047cc 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -93,6 +93,7 @@ static int _ecore_evas_drm_render_updates_process(Ecore_Evas *ee, Eina_List *upd
93 93
94static void _ecore_evas_drm_screen_geometry_get(const Ecore_Evas *ee EINA_UNUSED, int *x, int *y, int *w, int *h); 94static void _ecore_evas_drm_screen_geometry_get(const Ecore_Evas *ee EINA_UNUSED, int *x, int *y, int *w, int *h);
95static void _ecore_evas_drm_pointer_xy_get(const Ecore_Evas *ee, Evas_Coord *x, Evas_Coord *y); 95static void _ecore_evas_drm_pointer_xy_get(const Ecore_Evas *ee, Evas_Coord *x, Evas_Coord *y);
96Eina_Bool _ecore_evas_drm_pointer_warp(const Ecore_Evas *ee EINA_UNUSED, Evas_Coord x, Evas_Coord y);
96 97
97/* local variables */ 98/* local variables */
98static int _ecore_evas_init_count = 0; 99static int _ecore_evas_init_count = 0;
@@ -165,7 +166,7 @@ static Ecore_Evas_Engine_Func _ecore_evas_drm_engine_func =
165 NULL, //void (*fn_msg_send) (Ecore_Evas *ee, int maj, int min, void *data, int size); 166 NULL, //void (*fn_msg_send) (Ecore_Evas *ee, int maj, int min, void *data, int size);
166 167
167 _ecore_evas_drm_pointer_xy_get, 168 _ecore_evas_drm_pointer_xy_get,
168 NULL, // pointer_warp 169 _ecore_evas_drm_pointer_warp,
169 170
170 NULL, // wm_rot_preferred_rotation_set 171 NULL, // wm_rot_preferred_rotation_set
171 NULL, // wm_rot_available_rotations_set 172 NULL, // wm_rot_available_rotations_set
@@ -1135,3 +1136,10 @@ _ecore_evas_drm_pointer_xy_get(const Ecore_Evas *ee EINA_UNUSED, Evas_Coord *x,
1135 /* get pointer position from input */ 1136 /* get pointer position from input */
1136 ecore_drm_device_pointer_xy_get(dev, x, y); 1137 ecore_drm_device_pointer_xy_get(dev, x, y);
1137} 1138}
1139
1140Eina_Bool
1141_ecore_evas_drm_pointer_warp(const Ecore_Evas *ee EINA_UNUSED, Evas_Coord x, Evas_Coord y)
1142{
1143 ecore_drm_device_pointer_warp(dev, x, y);
1144 return EINA_TRUE;
1145}