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/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index a6f98f9..c3fd3b2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -19,3 +19,11 @@ libutouch_frameincludedir = $(includedir)/utouch libutouch_frameinclude_HEADERS = \ $(top_srcdir)/include/utouch/frame.h \ $(top_srcdir)/include/utouch/frame-mtdev.h + +if HAVE_XI + +libutouch_frame_la_LDFLAGS += $(XINPUT_LIBS) $(X11_LIBS) +libutouch_frame_la_SOURCES += frame-xi2.c +libutouch_frameinclude_HEADERS += $(top_srcdir)/include/utouch/frame-xi2.h + +endif -- cgit v1.2.3