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 --- tools/Makefile.am | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tools/Makefile.am') diff --git a/tools/Makefile.am b/tools/Makefile.am index 91e99ce..3b612cc 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -6,6 +6,18 @@ utouch_frame_test_mtdev_SOURCES = utouch-frame-test-mtdev.c utouch_frame_test_mtdev_LDFLAGS = -L$(top_builddir)/src/.libs/ \ -lutouch-frame -lutouch-evemu -lmtdev -lm +if HAVE_XI + +AM_CFLAGS = $(XINPUT_CFLAGS) + +bin_PROGRAMS += utouch-frame-test-xi2 + +utouch_frame_test_xi2_SOURCES = utouch-frame-test-xi2.c +utouch_frame_test_xi2_LDFLAGS = $(XINPUT_LIBS) $(X11_LIBS) \ + -L$(top_builddir)/src/.libs/ -lutouch-frame + +endif + if HAVE_DOCTOOLS dist_man_MANS = utouch-frame-test-mtdev.1 -- cgit v1.2.3