From eb896e11aacab5f53e3915a8d19ffffd92ce8e10 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 20 Jul 2010 15:39:08 +0200 Subject: Touch API changes Add touch time to the touch frame (Thanks Rafi) Add touch change counters to the touch frame Add event bypass callback Signed-off-by: Henrik Rydberg --- test/grail.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'test/grail.c') diff --git a/test/grail.c b/test/grail.c index 3fe20ee..82de65f 100644 --- a/test/grail.c +++ b/test/grail.c @@ -128,11 +128,16 @@ static void gh_destroy(struct gesture_handler *gh) gedev_destroy(&gh->dev); } -static void tp_sync(struct touch_engine *engine, touch_time_t time) +static void tp_event(struct touch_engine *engine, + const struct input_event *ev) +{ +} + +static void tp_sync(struct touch_engine *engine) { struct gesture_handler *gh = engine->priv; struct touch_frame *frame = &engine->frame; - gh_handle(gh, frame, time); + gh_handle(gh, frame, frame->time); } static void loop_device(struct touch_dev *dev, int fd) @@ -140,7 +145,7 @@ static void loop_device(struct touch_dev *dev, int fd) struct gesture_handler gh; struct touch_engine engine; gh_init(&gh); - touch_engine_init(&engine, tp_sync, &gh); + touch_engine_init(&engine, tp_event, tp_sync, &gh); touch_engine_attach(&engine, dev); while (!touch_dev_idle(dev, fd, 5000)) touch_dev_pull(dev, fd); -- cgit v1.2.3