summaryrefslogtreecommitdiffstats
path: root/minuitwrp/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'minuitwrp/events.c')
-rw-r--r--minuitwrp/events.c2
1 files changed, 2 insertions, 0 deletions
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);