From e944cd6a6cc64734642b531dac2b93fff0029fb9 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Wed, 11 Aug 2010 17:54:25 +0100 Subject: add a translation utility to grail By calling the grail_set_bbox(), grail will do translation of api coordinates and matching properties to an external coordinate system, such as screen coordinates. Signed-off-by: Henrik Rydberg --- test/grail-gesture.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/grail-gesture.c b/test/grail-gesture.c index c559661..762d3df 100644 --- a/test/grail-gesture.c +++ b/test/grail-gesture.c @@ -103,6 +103,10 @@ int main(int argc, char *argv[]) return -1; } grail_filter_abs_events(&ge, 1); + + struct grail_coord min = { -2, -1 }, max = { 2, 1 }; + grail_set_bbox(&ge, &min, &max); + loop_device(&ge, fd); grail_close(&ge, fd); -- cgit v1.2.3