From 815aae8a043baac42845a37e6c5539dac11b6f71 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Sun, 4 Dec 2011 17:43:59 +0200 Subject: [PATCH] tslib: add patch to prevent double up events up events were reported twice: from touch release and event sync, report only the later instead --- recipes/tslib/tslib/no_double_up_event.patch | 20 ++++++++++++++++++++ recipes/tslib/tslib_1.0.bb | 3 ++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 recipes/tslib/tslib/no_double_up_event.patch diff --git a/recipes/tslib/tslib/no_double_up_event.patch b/recipes/tslib/tslib/no_double_up_event.patch new file mode 100644 index 0000000000..b3ed6bb7db --- /dev/null +++ b/recipes/tslib/tslib/no_double_up_event.patch @@ -0,0 +1,20 @@ +diff -urp tslib-1.0_/plugins/input-raw.c tslib-1.0/plugins/input-raw.c +--- tslib-1.0_/plugins/input-raw.c 2011-12-04 17:32:22.474336001 +0200 ++++ tslib-1.0/plugins/input-raw.c 2011-12-04 17:33:06.544336001 +0200 +@@ -95,15 +108,8 @@ static int ts_input_read(struct tslib_mo + case EV_KEY: + switch (ev.code) { + case BTN_TOUCH: +- if (ev.value == 0) { +- /* pen up */ +- samp->x = 0; +- samp->y = 0; ++ if (ev.value == 0) + samp->pressure = 0; +- samp->tv = ev.time; +- samp++; +- total++; +- } + break; + } + break; diff --git a/recipes/tslib/tslib_1.0.bb b/recipes/tslib/tslib_1.0.bb index d5d9f0e3ed..455953e740 100644 --- a/recipes/tslib/tslib_1.0.bb +++ b/recipes/tslib/tslib_1.0.bb @@ -5,9 +5,10 @@ SRC_URI = "http://download.berlios.de/tslib/${BP}.tar.bz2 \ file://newer-libtool-fix.patch;patch=1 \ file://add_lowpass_plugin.patch;patch=1 \ file://lowpass.c \ + file://no_double_up_event.patch;patch=1 \ " -PR = "${INC_PR}.6" +PR = "${INC_PR}.7" do_configure_prepend() { cp ${WORKDIR}/lowpass.c ${S}/plugins/ -- 2.39.5