tizen concept - pointer's init position is a center of output.
it's implemented in e_input_evdev.c _device_calibration_set.
but e_pointer's init coordinate is 0.
so e_pointer's init coordinate also have to be set like e_input_evdev.
Change-Id: Iaeeb2e79c9504c2ab1cba3043be604c61dabc7e6
Signed-off-by: Junkyeong, Kim <jk0430.kim@samsung.com>
e_pointer_canvas_new(Ecore_Evas *ee, Eina_Bool filled)
{
E_Pointer *ptr = NULL;
+ E_Output *output = NULL;
EINA_SAFETY_ON_FALSE_RETURN_VAL(ee, NULL);
if (!_initted) return NULL;
ptr->canvas = EINA_TRUE;
ptr->w = ptr->h = e_config->cursor_size;
ptr->e_cursor = e_config->use_e_cursor;
+ output = e_output_find_by_index(0);
+ if (output)
+ {
+ ptr->x = output->config.mode.w / 2;
+ ptr->y = output->config.mode.h / 2;
+ }
ptr->ee = ee;
ptr->evas = ecore_evas_get(ee);