xfreerdp-client: added debug info for touch points
This commit is contained in:
parent
b1ef0976bc
commit
100dd651fd
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user