summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-08-12 18:50:00 +0100
committerHenrik Rydberg <rydberg@euromail.se>2010-08-12 18:50:00 +0100
commitcb2cad3b8c506a08a6bdad548a10ff47f85ef38b (patch)
treec9a270e403783cf84540ae5e11facb3b61542eef
parent4b21599b7ade620aa02b359335f618b5b10185da (diff)
Repackaged to utouch-grail v1.0.8v1.0.8
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac6
-rw-r--r--src/Makefile.am10
-rw-r--r--src/grail-api.c13
-rw-r--r--test/Makefile.am4
-rw-r--r--utouch-grail.pc.in (renamed from grail.pc.in)4
6 files changed, 16 insertions, 23 deletions
diff --git a/Makefile.am b/Makefile.am
index 14279f4..ec27340 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
1SUBDIRS = src test 1SUBDIRS = src test
2 2
3pkgconfigdir = $(libdir)/pkgconfig 3pkgconfigdir = $(libdir)/pkgconfig
4pkgconfig_DATA = grail.pc 4pkgconfig_DATA = utouch-grail.pc
5 5
6INCLUDES = $(top_srcdir)/include/ 6INCLUDES = $(top_srcdir)/include/
7 7
diff --git a/configure.ac b/configure.ac
index f883801..627360e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,9 +1,9 @@
1# Initialize Autoconf 1# Initialize Autoconf
2AC_PREREQ([2.60]) 2AC_PREREQ([2.60])
3AC_INIT([Gesture Recognition And Instantiation Library], 3AC_INIT([Gesture Recognition And Instantiation Library],
4 [1.0.7], 4 [1.0.8],
5 [], 5 [],
6 [grail]) 6 [utouch-grail])
7AC_CONFIG_SRCDIR([Makefile.am]) 7AC_CONFIG_SRCDIR([Makefile.am])
8AC_CONFIG_HEADERS([config.h]) 8AC_CONFIG_HEADERS([config.h])
9AC_CONFIG_AUX_DIR([config-aux]) 9AC_CONFIG_AUX_DIR([config-aux])
@@ -27,5 +27,5 @@ PKG_CHECK_MODULES([MTDEV], [mtdev >= 1.0])
27AC_CONFIG_FILES([Makefile 27AC_CONFIG_FILES([Makefile
28 src/Makefile 28 src/Makefile
29 test/Makefile 29 test/Makefile
30 grail.pc]) 30 utouch-grail.pc])
31AC_OUTPUT 31AC_OUTPUT
diff --git a/src/Makefile.am b/src/Makefile.am
index 96ac7ed..3171edd 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,11 +1,11 @@
1lib_LTLIBRARIES = libgrail.la 1lib_LTLIBRARIES = libutouch-grail.la
2 2
3libgrail_la_LDFLAGS = \ 3libutouch_grail_la_LDFLAGS = \
4 -version-info @LIB_VERSION@ \ 4 -version-info @LIB_VERSION@ \
5 -lm \ 5 -lm \
6 $(MTDEV_LIBS) 6 $(MTDEV_LIBS)
7 7
8libgrail_la_SOURCES = \ 8libutouch_grail_la_SOURCES = \
9 evbuf.h \ 9 evbuf.h \
10 gebuf.h \ 10 gebuf.h \
11 touch-dev.c \ 11 touch-dev.c \
@@ -27,8 +27,8 @@ AM_CFLAGS = $(CWARNFLAGS)
27 27
28INCLUDES = -I$(top_srcdir)/include/ 28INCLUDES = -I$(top_srcdir)/include/
29 29
30libgrailincludedir = $(includedir) 30libutouch_grailincludedir = $(includedir)
31libgrailinclude_HEADERS = \ 31libutouch_grailinclude_HEADERS = \
32 $(top_srcdir)/include/grail-bits.h \ 32 $(top_srcdir)/include/grail-bits.h \
33 $(top_srcdir)/include/grail-types.h \ 33 $(top_srcdir)/include/grail-types.h \
34 $(top_srcdir)/include/grail-touch.h \ 34 $(top_srcdir)/include/grail-touch.h \
diff --git a/src/grail-api.c b/src/grail-api.c
index 03355dc..7c054a9 100644
--- a/src/grail-api.c
+++ b/src/grail-api.c
@@ -82,17 +82,10 @@ static void tp_sync(struct touch_engine *engine,
82 evbuf_clear(&x->evbuf); 82 evbuf_clear(&x->evbuf);
83 return; 83 return;
84 } 84 }
85 if (hack > x->hack_status) {
86 ev = *syn;
87 ev.type = EV_KEY;
88 ev.code = BTN_TOUCH;
89 ev.value = hack;
90 ge->event(ge, &ev);
91 x->hack_status = hack;
92 nevent++;
93 }
94 while (!evbuf_empty(&x->evbuf)) { 85 while (!evbuf_empty(&x->evbuf)) {
95 evbuf_get(&x->evbuf, &ev); 86 evbuf_get(&x->evbuf, &ev);
87 if (!hack && ev.type == EV_ABS)
88 continue;
96 if (dofilt && grail_mask_get(filtered, ev.type)) 89 if (dofilt && grail_mask_get(filtered, ev.type))
97 continue; 90 continue;
98 if (extra_filtered(&ev)) 91 if (extra_filtered(&ev))
@@ -100,7 +93,7 @@ static void tp_sync(struct touch_engine *engine,
100 ge->event(ge, &ev); 93 ge->event(ge, &ev);
101 nevent++; 94 nevent++;
102 } 95 }
103 if (hack < x->hack_status) { 96 if (hack != x->hack_status) {
104 ev = *syn; 97 ev = *syn;
105 ev.type = EV_KEY; 98 ev.type = EV_KEY;
106 ev.code = BTN_TOUCH; 99 ev.code = BTN_TOUCH;
diff --git a/test/Makefile.am b/test/Makefile.am
index 4ccbe0a..8ffbe09 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -3,7 +3,7 @@ bin_PROGRAMS = grail-touch grail-gesture
3INCLUDES=-I$(top_srcdir)/include/ 3INCLUDES=-I$(top_srcdir)/include/
4 4
5grail_touch_SOURCES = grail-touch.c 5grail_touch_SOURCES = grail-touch.c
6grail_touch_LDFLAGS = -L$(top_builddir)/src/.libs/ -lgrail -lmtdev -lm 6grail_touch_LDFLAGS = -L$(top_builddir)/src/.libs/ -lutouch-grail -lmtdev -lm
7 7
8grail_gesture_SOURCES = grail-gesture.c 8grail_gesture_SOURCES = grail-gesture.c
9grail_gesture_LDFLAGS = -L$(top_builddir)/src/.libs/ -lgrail -lmtdev -lm 9grail_gesture_LDFLAGS = -L$(top_builddir)/src/.libs/ -lutouch-grail -lmtdev -lm
diff --git a/grail.pc.in b/utouch-grail.pc.in
index 6d69ddc..4b06dc9 100644
--- a/grail.pc.in
+++ b/utouch-grail.pc.in
@@ -3,7 +3,7 @@ exec_prefix=@exec_prefix@
3libdir=@libdir@ 3libdir=@libdir@
4includedir=@includedir@ 4includedir=@includedir@
5 5
6Name: grail 6Name: utouch-grail
7Description: Gesture Recognition And Instantiation Library 7Description: Gesture Recognition And Instantiation Library
8Version: @PACKAGE_VERSION@ 8Version: @PACKAGE_VERSION@
9Libs: -L${libdir} -lgrail 9Libs: -L${libdir} -lutouch-grail