From: Taekyun Kim Date: Fri, 16 Oct 2015 10:31:37 +0000 (+0900) Subject: pepper: Add a touch grab func for touch point cancel X-Git-Tag: accepted/tizen/mobile/20151221.050925~34^2~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38109607f7427988a35c7df0d3d2de84655ca84d;p=platform%2Fcore%2Fuifw%2Fpepper.git pepper: Add a touch grab func for touch point cancel Change-Id: I319eb6583ee713df732c89408063705cc5802e78 --- diff --git a/src/lib/pepper/pepper.h b/src/lib/pepper/pepper.h index 4200cc8..7856c41 100644 --- a/src/lib/pepper/pepper.h +++ b/src/lib/pepper/pepper.h @@ -427,6 +427,7 @@ struct pepper_touch_grab void (*up)(pepper_touch_t *touch, void *data, uint32_t time, uint32_t id); void (*motion)(pepper_touch_t *touch, void *data, uint32_t time, uint32_t id, double x, double y); + void (*cancel_touch_point)(pepper_touch_t *touch, uint32_t id); void (*frame)(pepper_touch_t *touch, void *data); void (*cancel)(pepper_touch_t *touch, void *data); }; diff --git a/src/lib/pepper/touch.c b/src/lib/pepper/touch.c index 2f9441e..100d50c 100644 --- a/src/lib/pepper/touch.c +++ b/src/lib/pepper/touch.c @@ -34,6 +34,9 @@ touch_point_handle_focus_destroy(pepper_event_listener_t *listener, pepper_objec { pepper_touch_point_t *point = data; touch_point_set_focus(point, NULL); + + if (point->touch->grab) + point->touch->grab->cancel_touch_point(point->touch, point->id, point->touch->data); } static void