summaryrefslogtreecommitdiffstats
path: root/minuitwrp
diff options
context:
space:
mode:
authorIbrahim Awwal <ibrahim.awwal@gmail.com>2014-01-04 21:38:26 +0100
committerIbrahim Awwal <ibrahim.awwal@gmail.com>2014-01-04 21:38:26 +0100
commit2e9cb01bdad53b328799e57c9e8612758db006cd (patch)
tree8ed385ce2bd7b2013f44f920805c66f54aeeb4d7 /minuitwrp
parentadd errno.h to fix compile errors on other devices (diff)
downloadandroid_bootable_recovery-2e9cb01bdad53b328799e57c9e8612758db006cd.tar
android_bootable_recovery-2e9cb01bdad53b328799e57c9e8612758db006cd.tar.gz
android_bootable_recovery-2e9cb01bdad53b328799e57c9e8612758db006cd.tar.bz2
android_bootable_recovery-2e9cb01bdad53b328799e57c9e8612758db006cd.tar.lz
android_bootable_recovery-2e9cb01bdad53b328799e57c9e8612758db006cd.tar.xz
android_bootable_recovery-2e9cb01bdad53b328799e57c9e8612758db006cd.tar.zst
android_bootable_recovery-2e9cb01bdad53b328799e57c9e8612758db006cd.zip
Diffstat (limited to 'minuitwrp')
-rw-r--r--minuitwrp/Android.mk4
-rw-r--r--minuitwrp/events.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/minuitwrp/Android.mk b/minuitwrp/Android.mk
index 6e5f45f0b..8c8ffaa88 100644
--- a/minuitwrp/Android.mk
+++ b/minuitwrp/Android.mk
@@ -52,6 +52,10 @@ ifeq ($(BOARD_HAS_FLIPPED_SCREEN), true)
LOCAL_CFLAGS += -DBOARD_HAS_FLIPPED_SCREEN
endif
+ifeq ($(TW_IGNORE_MAJOR_AXIS_0), true)
+LOCAL_CFLAGS += -DTW_IGNORE_MAJOR_AXIS_0
+endif
+
ifneq ($(BOARD_USE_CUSTOM_RECOVERY_FONT),)
LOCAL_CFLAGS += -DBOARD_USE_CUSTOM_RECOVERY_FONT=$(BOARD_USE_CUSTOM_RECOVERY_FONT)
endif
diff --git a/minuitwrp/events.c b/minuitwrp/events.c
index 4368c1561..73369a2cc 100644
--- a/minuitwrp/events.c
+++ b/minuitwrp/events.c
@@ -395,10 +395,12 @@ static int vk_modify(struct ev *e, struct input_event *ev)
case ABS_MT_TOUCH_MAJOR: //30
if (ev->value == 0)
{
+#ifndef TW_IGNORE_MAJOR_AXIS_0
// We're in a touch release, although some devices will still send positions as well
e->mt_p.x = 0;
e->mt_p.y = 0;
touchReleaseOnNextSynReport = 1;
+#endif
}
#ifdef _EVENT_LOGGING
printf("EV: %s => EV_ABS ABS_MT_TOUCH_MAJOR %d\n", e->deviceName, ev->value);