From e290dfae93962e81006f9780c258bcf119ba215a Mon Sep 17 00:00:00 2001 From: Jiyoun Park Date: Sat, 26 Jan 2013 09:47:21 +0000 Subject: [PATCH] add info log related with mouse down/up SVN revision: 83351 --- src/lib/ecore_x/xlib/ecore_x_events.c | 3 +++ src/lib/ecore_x/xlib/ecore_x_xi2.c | 2 ++ src/lib/evas/canvas/evas_events.c | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/src/lib/ecore_x/xlib/ecore_x_events.c b/src/lib/ecore_x/xlib/ecore_x_events.c index 236f93db1f..ed14ad3f7e 100644 --- a/src/lib/ecore_x/xlib/ecore_x_events.c +++ b/src/lib/ecore_x/xlib/ecore_x_events.c @@ -522,6 +522,8 @@ _ecore_x_event_handle_button_press(XEvent *xevent) { int i; + INF("ButtonEvent:press time=%u x=%d y=%d button=%d", (unsigned int)xevent->xbutton.time, (int)xevent->xbutton.x, (int)xevent->xbutton.y, xevent->xbutton.button); + _ecore_x_last_event_mouse_move = 0; if ((xevent->xbutton.button > 3) && (xevent->xbutton.button < 8)) { @@ -672,6 +674,7 @@ void _ecore_x_event_handle_button_release(XEvent *xevent) { _ecore_x_last_event_mouse_move = 0; + INF("ButtonEvent:release time=%u x=%d y=%d button=%d", (unsigned int)xevent->xbutton.time, (int)xevent->xbutton.x, (int)xevent->xbutton.y, xevent->xbutton.button); /* filter out wheel buttons */ if ((xevent->xbutton.button <= 3) || (xevent->xbutton.button > 7)) { diff --git a/src/lib/ecore_x/xlib/ecore_x_xi2.c b/src/lib/ecore_x/xlib/ecore_x_xi2.c index a09f05500d..8289688f6f 100644 --- a/src/lib/ecore_x/xlib/ecore_x_xi2.c +++ b/src/lib/ecore_x/xlib/ecore_x_xi2.c @@ -270,6 +270,7 @@ _ecore_x_input_handler(XEvent *xevent) break; case XI_ButtonPress: + INF("ButtonEvent:multi press time=%u x=%d y=%d devid=%d", (unsigned int)evd->time, (int)evd->event_x, (int)evd->event_y, devid); _ecore_mouse_button (ECORE_EVENT_MOUSE_BUTTON_DOWN, evd->time, @@ -289,6 +290,7 @@ _ecore_x_input_handler(XEvent *xevent) break; case XI_ButtonRelease: + INF("ButtonEvent:multi release time=%u x=%d y=%d devid=%d", (unsigned int)evd->time, (int)evd->event_x, (int)evd->event_y, devid); _ecore_mouse_button (ECORE_EVENT_MOUSE_BUTTON_UP, evd->time, diff --git a/src/lib/evas/canvas/evas_events.c b/src/lib/evas/canvas/evas_events.c index 31c0bb4772..b82120095c 100644 --- a/src/lib/evas/canvas/evas_events.c +++ b/src/lib/evas/canvas/evas_events.c @@ -1081,6 +1081,7 @@ _canvas_event_feed_mouse_down(Eo *eo_e, void *_pd, va_list *list) int addgrab = 0; int event_id = 0; + INF("ButtonEvent:down time=%u x=%d y=%d button=%d downs=%d", timestamp, e->pointer.x, e->pointer.y, b, e->pointer.downs); if ((b < 1) || (b > 32)) return; e->pointer.button |= (1 << (b - 1)); @@ -1318,6 +1319,7 @@ _canvas_event_feed_mouse_up(Eo *eo_e, void *_pd, va_list *list) Evas_Public_Data *e = _pd; Eina_List *l, *copy; + INF("ButtonEvent:up time=%u x=%d y=%d button=%d downs=%d", timestamp, e->pointer.x, e->pointer.y, b, e->pointer.downs); if ((b < 1) || (b > 32)) return; if (e->pointer.downs <= 0) return; @@ -2228,6 +2230,7 @@ _canvas_event_feed_multi_down(Eo *eo_e, void *_pd, va_list *list) int addgrab = 0; int event_id = 0; + INF("ButtonEvent:multi down time=%u x=%d y=%d button=%d downs=%d", timestamp, x, y, d, e->pointer.downs); e->pointer.downs++; if (e->is_frozen) return; e->last_timestamp = timestamp; @@ -2340,6 +2343,7 @@ _canvas_event_feed_multi_up(Eo *eo_e, void *_pd, va_list *list) Evas_Object *eo_obj; int event_id = 0; + INF("ButtonEvent:multi up time=%u x=%d y=%d device=%d downs=%d", timestamp, x, y, d, e->pointer.downs); if (e->pointer.downs <= 0) return; e->pointer.downs--; if (e->is_frozen) return;