e_devicemgr_input: add logs for tracking touch events 54/232754/1
authorjeon <jhyuni.kang@samsung.com>
Thu, 7 May 2020 10:27:47 +0000 (19:27 +0900)
committerjeon <jhyuni.kang@samsung.com>
Thu, 7 May 2020 10:27:47 +0000 (19:27 +0900)
Change-Id: I1dee063947d0c26f433dd7ad4787c141ca0e9e74

src/bin/e_devicemgr_input.c

index 1faabf34de728bbbf2eebca5428807fc9a89cece..f2c5d9e7f7a3da98fa29debae71c2a5777ffaf74 100644 (file)
@@ -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;
 }