ev->dev = _ecore_wl2_mouse_dev_get(input, window->id);
}
+ //TIZEN_ONLY(20200408): add debug
+ ERR("[press] window = %p, time=%u x=%d y=%d button=%d", window, (unsigned int)timestamp, ev->x, ev->y, device);
+ //
+
ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_DOWN, ev,
_input_event_mouse_button_cb_free, ev->dev);
else if ((input->focus.pointer) && (input->focus.pointer == window))
ev->dev = _ecore_wl2_mouse_dev_get(input, window->id);
+ //TIZEN_ONLY(20200408): add debug
+ ERR("[release] time=%u x=%d y=%d button=%d", (unsigned int)timestamp, ev->x, ev->y, device);
+ //
+
ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_UP, ev,
_input_event_mouse_button_cb_free, ev->dev);
code = _ecore_wl2_input_convert_old_keys(code);
//
+ //TIZEN_ONLY(20200408): add debug
+ ERR("Key[%d] event occurs %u", code, timestamp);
+ //
+
if (xkb_state_key_get_syms(input->xkb.state, code, &syms) == 1)
sym = syms[0];
if (state == WL_KEYBOARD_KEY_STATE_PRESSED)
Ecore_Wl2_Window *window;
input = data;
- if (!input) return;
-
+ //TIZEN_ONLY(20200408): add debug
+ if (!input)
+ {
+ ERR("input is NULL");
+ return;
+ }
+ //
/* find the window which this surface belongs to */
window = _ecore_wl2_display_window_surface_find(input->display, surface);
- if (!window) return;
+ //TIZEN_ONLY(20200408): add debug
+ if (!window)
+ {
+ ERR("window is NULL");
+ return;
+ }
+ //
input->focus.touch = window;
input->timestamp = timestamp;
{
Ecore_Wl2_Input *input;
+ //TIZEN_ONLY(20200408): add debug
+ //if (!input) return;
+ //EINA_SAFETY_ON_NULL_RETURN(input->focus.touch); //if this is happening, then we are getting up events in a invalid state
input = data;
- if (!input) return;
- EINA_SAFETY_ON_NULL_RETURN(input->focus.touch); //if this is happening, then we are getting up events in a invalid state
-
+ if (!input)
+ {
+ ERR("input is NULL");
+ return;
+ }
+ if (!input->focus.touch)
+ {
+ ERR("touch_focus is false");
+ return;
+ }
+ //
input->timestamp = timestamp;
input->display->serial = serial;
Ecore_Wl2_Input *input;
input = data;
- if (!input) return;
- if (!input->focus.touch) return;
-
+ //TIZEN_ONLY(20200408): add debug
+ //if (!input) return;
+ //if (!input->focus.touch) return;
+ if (!input)
+ {
+ ERR("input is NULL");
+ return;
+ }
+ if (!input->focus.touch)
+ {
+ ERR("touch_focus is false");
+ return;
+ }
+ //
input->timestamp = timestamp;
input->pointer.sx = wl_fixed_to_int(x);
input->pointer.sy = wl_fixed_to_int(y);
ev->dev = _ecore_wl2_touch_dev_get(input, ev->window);
+ //TIZEN_ONLY(20200408): add debug
+ ERR("[cancel] time=%u window=0x%x", ev->timestamp, ev->window);
+ //
+
ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_CANCEL, ev, NULL, _input_event_mouse_button_cb_free);
//
}