From 100dd651fd8143efaea6dabc6abd84f2aaae46f7 Mon Sep 17 00:00:00 2001 From: C-o-r-E Date: Fri, 26 Apr 2013 15:27:08 -0400 Subject: [PATCH] xfreerdp-client: added debug info for touch points --- client/X11/xf_input.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/X11/xf_input.c b/client/X11/xf_input.c index 61896ef2a..a876504f9 100644 --- a/client/X11/xf_input.c +++ b/client/X11/xf_input.c @@ -109,6 +109,8 @@ void xf_input_handle_event(xfInfo* xfi, XEvent* event) //handle touch events XGenericEventCookie* cookie = &event->xcookie; + printf("event: %p\n", event); + XGetEventData(xfi->display, cookie); if ( (cookie->type == GenericEvent) && @@ -164,6 +166,11 @@ void xf_input_touch_begin(xfInfo* xfi, XIDeviceEvent* event) event->event_x, event->event_y); + printf("state: a=%d", active_contacts); + printf("c0=[%d, %d, %.2f, %.2f, %.2f, %.2f]", contacts[0].id, contacts[0].count,contacts[0].pos_x, contacts[0].pos_y, contacts[0].last_x, contacts[0].last_y ); + printf("c0=[%d, %d, %.2f, %.2f, %.2f, %.2f]", contacts[1].id, contacts[1].count,contacts[1].pos_x, contacts[1].pos_y, contacts[1].last_x, contacts[1].last_y ); + + } void xf_input_touch_update(xfInfo* xfi, XIDeviceEvent* event) {