From: jeon Date: Thu, 7 May 2020 10:27:47 +0000 (+0900) Subject: e_devicemgr_input: add logs for tracking touch events X-Git-Tag: submit/tizen/20200508.090411~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a13914290d23dffdf096b993bd61ff5ae850a961;p=platform%2Fupstream%2Fenlightenment.git e_devicemgr_input: add logs for tracking touch events Change-Id: I1dee063947d0c26f433dd7ad4787c141ca0e9e74 --- diff --git a/src/bin/e_devicemgr_input.c b/src/bin/e_devicemgr_input.c index 1faabf34de..f2c5d9e7f7 100644 --- a/src/bin/e_devicemgr_input.c +++ b/src/bin/e_devicemgr_input.c @@ -306,6 +306,7 @@ _e_devicemgr_input_cb_mouse_button_down(void *data, int type, void *event) { Ecore_Event_Mouse_Button *ev; Eina_Bool res = ECORE_CALLBACK_PASS_ON; + E_Comp_Config *comp_conf = NULL; EINA_SAFETY_ON_NULL_RETURN_VAL(event, res); ev = (Ecore_Event_Mouse_Button *)event; @@ -316,6 +317,13 @@ _e_devicemgr_input_cb_mouse_button_down(void *data, int type, void *event) if (e_devicemgr->dconfig->conf->input.button_remap_enable) res = _e_devicemgr_input_mouse_button_remap(ev, EINA_TRUE); + comp_conf = e_comp_config_get(); + if (comp_conf && comp_conf->input_log_enable) + { + ELOGF("DEVMGR", "Mouse Down (id: %d, button: %d, x: %d, y: %d), res: %d", NULL, + ev->multi.device, ev->buttons, ev->x, ev->y, res); + } + return res; } @@ -324,6 +332,7 @@ _e_devicemgr_input_cb_mouse_button_up(void *data, int type, void *event) { Ecore_Event_Mouse_Button *ev; Eina_Bool res = ECORE_CALLBACK_PASS_ON; + E_Comp_Config *comp_conf = NULL; EINA_SAFETY_ON_NULL_RETURN_VAL(event, res); ev = (Ecore_Event_Mouse_Button *)event; @@ -334,6 +343,13 @@ _e_devicemgr_input_cb_mouse_button_up(void *data, int type, void *event) if (e_devicemgr->dconfig->conf->input.button_remap_enable) res = _e_devicemgr_input_mouse_button_remap(ev, EINA_FALSE); + comp_conf = e_comp_config_get(); + if (comp_conf && comp_conf->input_log_enable) + { + ELOGF("DEVMGR", "Mouse Up (id: %d, button: %d, x: %d, y: %d), res: %d", NULL, + ev->multi.device, ev->buttons, ev->x, ev->y, res); + } + return res; }