ecore-evas-drm: Implement ecore_evas_pointer_xy_get for drm engine

This implements ecore_evas_pointer_xy_get for the drm engine, However
this is simply using evas_pointer_output_xy_get for the moment because
I need to add ecore_drm functions for getting pointer position.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-09-15 11:44:10 -04:00
parent bbd6822c7c
commit 11237fd858
1 changed files with 10 additions and 1 deletions

View File

@ -69,6 +69,7 @@ static void _ecore_evas_drm_render_updates(void *data, Evas *evas EINA_UNUSED, v
static int _ecore_evas_drm_render_updates_process(Ecore_Evas *ee, Eina_List *updates);
static void _ecore_evas_drm_screen_geometry_get(const Ecore_Evas *ee EINA_UNUSED, int *x, int *y, int *w, int *h);
static void _ecore_evas_drm_pointer_xy_get(const Ecore_Evas *ee, Evas_Coord *x, Evas_Coord *y);
/* local variables */
static int _ecore_evas_init_count = 0;
@ -139,7 +140,7 @@ static Ecore_Evas_Engine_Func _ecore_evas_drm_engine_func =
NULL, //void (*fn_msg_parent_send) (Ecore_Evas *ee, int maj, int min, void *data, int size);
NULL, //void (*fn_msg_send) (Ecore_Evas *ee, int maj, int min, void *data, int size);
NULL, // pointer_xy_get
_ecore_evas_drm_pointer_xy_get,
NULL, // pointer_warp
NULL, // wm_rot_preferred_rotation_set
@ -995,3 +996,11 @@ _ecore_evas_drm_screen_geometry_get(const Ecore_Evas *ee EINA_UNUSED, int *x, in
{
ecore_drm_outputs_geometry_get(dev, x, y, w, h);
}
static void
_ecore_evas_drm_pointer_xy_get(const Ecore_Evas *ee, Evas_Coord *x, Evas_Coord *y)
{
/* FIXME: This should probably be using an ecore_drm_input function to
* return the current mouse position */
evas_pointer_output_xy_get(ee->evas, x, y);
}