diff options
Diffstat (limited to '')
-rw-r--r-- | minuitwrp/Android.mk | 4 | ||||
-rw-r--r-- | minuitwrp/events.c | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/minuitwrp/Android.mk b/minuitwrp/Android.mk index 188de9ded..76b4024cc 100644 --- a/minuitwrp/Android.mk +++ b/minuitwrp/Android.mk @@ -97,6 +97,10 @@ ifeq ($(TW_IGNORE_MT_POSITION_0), true) LOCAL_CFLAGS += -DTW_IGNORE_MT_POSITION_0 endif +ifeq ($(TW_IGNORE_ABS_MT_TRACKING_ID), true) +LOCAL_CFLAGS += -DTW_IGNORE_ABS_MT_TRACKING_ID +endif + ifneq ($(TW_INPUT_BLACKLIST),) LOCAL_CFLAGS += -DTW_INPUT_BLACKLIST=$(TW_INPUT_BLACKLIST) endif diff --git a/minuitwrp/events.c b/minuitwrp/events.c index 5df5338b2..1d2af6b7c 100644 --- a/minuitwrp/events.c +++ b/minuitwrp/events.c @@ -545,6 +545,12 @@ static int vk_modify(struct ev *e, struct input_event *ev) break; case ABS_MT_TRACKING_ID: //39 +#ifdef TW_IGNORE_ABS_MT_TRACKING_ID +#ifdef _EVENT_LOGGING + printf("EV: %s => EV_ABS ABS_MT_TRACKING_ID %d ignored\n", e->deviceName, ev->value); +#endif + return 1; +#endif if (ev->value < 0) { e->mt_p.x = 0; e->mt_p.y = 0; @@ -581,6 +587,10 @@ static int vk_modify(struct ev *e, struct input_event *ev) printf("EV: %s => EV_ABS ABS_MT_DISTANCE %d\n", e->deviceName, ev->value); return 1; break; + case ABS_MT_SLOT: + printf("EV: %s => ABS_MT_SLOT %d\n", e->deviceName, ev->value); + return 1; + break; #endif default: |