From 3244deffa1aedbb6c1af8c2dc993f1d771373c6a Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 15 Feb 2011 14:48:57 +0100 Subject: Optional XI2.1 support This patchs adds optional XI2.1 support to utouch-frame. The utouch/frame-xi2.h header contains helper functions equivalent to utouch/frame-mtdev.h. In addition, the device-to-screen mapping is handled via XEvents and optionally XIPropertyEvent. The latter allows free device placement via xinput set-prop, useful in multi- head setups, thanks to Chase Douglas. Touch frame events can be tested using the utouch-frame-test-xi2 tool. Use --with-xi to enable. Signed-off-by: Henrik Rydberg --- src/frame-impl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/frame-impl.h') diff --git a/src/frame-impl.h b/src/frame-impl.h index 38affe7..b072de9 100644 --- a/src/frame-impl.h +++ b/src/frame-impl.h @@ -33,6 +33,8 @@ struct utouch_frame_engine { struct utouch_surface *surface; struct utouch_frame **frames; struct utouch_frame *next; + int *evmap; + float map[9]; }; #endif -- cgit v1.2.3