E_Keyrouter_Event_Data *key_data;
Ecore_Device *ecore_dev = NULL, *data;
Eina_List *l;
+ E_Comp_Config *comp_conf = NULL;
if (!(edev = libinput_device_get_user_data(device)))
{
e->modifiers = edev->xkb.modifiers;
e->dev = ecore_device_ref(ecore_dev);
+ comp_conf = e_comp_config_get();
+ if (comp_conf && comp_conf->input_log_enable)
+ ELOGF("Key", "%s (keyname: %s, keycode: %d, device: %s)", NULL, state?"Press":"Release", e->keyname, e->keycode, ecore_device_name_get(e->dev));
+
if (state)
ecore_event_add(ECORE_EVENT_KEY_DOWN, e, _e_input_event_key_cb_free, NULL);
else
uint32_t button, timestamp;
Ecore_Device *ecore_dev = NULL, *detent_data = NULL, *data;
Eina_List *l;
+ E_Comp_Config *comp_conf = NULL;
if (!(edev = libinput_device_get_user_data(device)))
{
if (edev->mouse.did_triple)
ev->triple_click = 1;
+ comp_conf = e_comp_config_get();
+ if (comp_conf && comp_conf->input_log_enable)
+ ELOGF("Mouse", "Button %s (btn: %d, device: %s)", NULL, state?"Press":"Release", button, ecore_device_name_get(ev->dev));
+
if (state)
ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_DOWN, ev, _e_input_event_mouse_button_cb_free, NULL);
else
{
E_Input_Evdev *edev;
int w = 0, h = 0;
+ E_Comp_Config *comp_conf = NULL;
if (!(edev = libinput_device_get_user_data(device)))
{
edev->touch.coords[edev->mt_slot].y = edev->seat->ptr.iy;
}
+ comp_conf = e_comp_config_get();
+ if (comp_conf && comp_conf->input_log_enable)
+ ELOGF("Touch", "Down (id: %d, x: %d, y: %d)", NULL, edev->mt_slot, edev->seat->ptr.ix, edev->seat->ptr.iy);
+
_device_handle_touch_motion_send(edev, event);
_device_handle_touch_event_send(edev, event, ECORE_EVENT_MOUSE_BUTTON_DOWN);
}
_device_handle_touch_up(struct libinput_device *device, struct libinput_event_touch *event)
{
E_Input_Evdev *edev;
+ E_Comp_Config *comp_conf = NULL;
if (!(edev = libinput_device_get_user_data(device)))
{
edev->touch.coords[edev->mt_slot].y;
}
+ comp_conf = e_comp_config_get();
+ if (comp_conf && comp_conf->input_log_enable)
+ ELOGF("Touch", "Up (id: %d, x: %d, y: %d)", NULL, edev->mt_slot, edev->seat->ptr.ix, edev->seat->ptr.iy);
+
_device_handle_touch_event_send(edev, event, ECORE_EVENT_MOUSE_BUTTON_UP);
}