From 005b3a5dc1d1315da95b8961dfbe3c9b9fa5ccc5 Mon Sep 17 00:00:00 2001 From: Drew Walton Date: Fri, 4 Dec 2015 17:27:04 -0700 Subject: minui: don't drop EV_ABS (touch) events Change-Id: I8d16c5cffb28d6621c8079ed6cb38381cc9d43b5 --- minui/events.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'minui/events.cpp') diff --git a/minui/events.cpp b/minui/events.cpp index 4e9d80b..120baed 100644 --- a/minui/events.cpp +++ b/minui/events.cpp @@ -78,8 +78,8 @@ int ev_init(ev_callback input_cb, void* data) { continue; } - // We assume that only EV_KEY, EV_REL, and EV_SW event types are ever needed. - if (!test_bit(EV_KEY, ev_bits) && !test_bit(EV_REL, ev_bits) && !test_bit(EV_SW, ev_bits)) { + // We assume that only EV_KEY, EV_REL, EV_SW, and EV_ABS event types are ever needed. + if (!test_bit(EV_KEY, ev_bits) && !test_bit(EV_REL, ev_bits) && !test_bit(EV_SW, ev_bits) && !test_bit(EV_ABS, ev_bits)) { close(fd); continue; } -- cgit v1.1