diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-08-12 18:50:00 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-08-12 18:50:00 +0100 |
| commit | cb2cad3b8c506a08a6bdad548a10ff47f85ef38b (patch) | |
| tree | c9a270e403783cf84540ae5e11facb3b61542eef | |
| parent | 4b21599b7ade620aa02b359335f618b5b10185da (diff) | |
Repackaged to utouch-grail v1.0.8v1.0.8
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
| -rw-r--r-- | Makefile.am | 2 | ||||
| -rw-r--r-- | configure.ac | 6 | ||||
| -rw-r--r-- | src/Makefile.am | 10 | ||||
| -rw-r--r-- | src/grail-api.c | 13 | ||||
| -rw-r--r-- | test/Makefile.am | 4 | ||||
| -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 @@ | |||
| 1 | SUBDIRS = src test | 1 | SUBDIRS = src test |
| 2 | 2 | ||
| 3 | pkgconfigdir = $(libdir)/pkgconfig | 3 | pkgconfigdir = $(libdir)/pkgconfig |
| 4 | pkgconfig_DATA = grail.pc | 4 | pkgconfig_DATA = utouch-grail.pc |
| 5 | 5 | ||
| 6 | INCLUDES = $(top_srcdir)/include/ | 6 | INCLUDES = $(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 |
| 2 | AC_PREREQ([2.60]) | 2 | AC_PREREQ([2.60]) |
| 3 | AC_INIT([Gesture Recognition And Instantiation Library], | 3 | AC_INIT([Gesture Recognition And Instantiation Library], |
| 4 | [1.0.7], | 4 | [1.0.8], |
| 5 | [], | 5 | [], |
| 6 | [grail]) | 6 | [utouch-grail]) |
| 7 | AC_CONFIG_SRCDIR([Makefile.am]) | 7 | AC_CONFIG_SRCDIR([Makefile.am]) |
| 8 | AC_CONFIG_HEADERS([config.h]) | 8 | AC_CONFIG_HEADERS([config.h]) |
| 9 | AC_CONFIG_AUX_DIR([config-aux]) | 9 | AC_CONFIG_AUX_DIR([config-aux]) |
| @@ -27,5 +27,5 @@ PKG_CHECK_MODULES([MTDEV], [mtdev >= 1.0]) | |||
| 27 | AC_CONFIG_FILES([Makefile | 27 | AC_CONFIG_FILES([Makefile |
| 28 | src/Makefile | 28 | src/Makefile |
| 29 | test/Makefile | 29 | test/Makefile |
| 30 | grail.pc]) | 30 | utouch-grail.pc]) |
| 31 | AC_OUTPUT | 31 | AC_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 @@ | |||
| 1 | lib_LTLIBRARIES = libgrail.la | 1 | lib_LTLIBRARIES = libutouch-grail.la |
| 2 | 2 | ||
| 3 | libgrail_la_LDFLAGS = \ | 3 | libutouch_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 | ||
| 8 | libgrail_la_SOURCES = \ | 8 | libutouch_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 | ||
| 28 | INCLUDES = -I$(top_srcdir)/include/ | 28 | INCLUDES = -I$(top_srcdir)/include/ |
| 29 | 29 | ||
| 30 | libgrailincludedir = $(includedir) | 30 | libutouch_grailincludedir = $(includedir) |
| 31 | libgrailinclude_HEADERS = \ | 31 | libutouch_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 | |||
| 3 | INCLUDES=-I$(top_srcdir)/include/ | 3 | INCLUDES=-I$(top_srcdir)/include/ |
| 4 | 4 | ||
| 5 | grail_touch_SOURCES = grail-touch.c | 5 | grail_touch_SOURCES = grail-touch.c |
| 6 | grail_touch_LDFLAGS = -L$(top_builddir)/src/.libs/ -lgrail -lmtdev -lm | 6 | grail_touch_LDFLAGS = -L$(top_builddir)/src/.libs/ -lutouch-grail -lmtdev -lm |
| 7 | 7 | ||
| 8 | grail_gesture_SOURCES = grail-gesture.c | 8 | grail_gesture_SOURCES = grail-gesture.c |
| 9 | grail_gesture_LDFLAGS = -L$(top_builddir)/src/.libs/ -lgrail -lmtdev -lm | 9 | grail_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@ | |||
| 3 | libdir=@libdir@ | 3 | libdir=@libdir@ |
| 4 | includedir=@includedir@ | 4 | includedir=@includedir@ |
| 5 | 5 | ||
| 6 | Name: grail | 6 | Name: utouch-grail |
| 7 | Description: Gesture Recognition And Instantiation Library | 7 | Description: Gesture Recognition And Instantiation Library |
| 8 | Version: @PACKAGE_VERSION@ | 8 | Version: @PACKAGE_VERSION@ |
| 9 | Libs: -L${libdir} -lgrail | 9 | Libs: -L${libdir} -lutouch-grail |
