diff options
author | Drew Walton <drewwalton19216801@gmail.com> | 2015-12-04 17:27:04 -0700 |
---|---|---|
committer | Drew Walton <drewwalton19216801@gmail.com> | 2015-12-04 17:41:52 -0700 |
commit | 005b3a5dc1d1315da95b8961dfbe3c9b9fa5ccc5 (patch) | |
tree | 71c9d117408b52199de4fabbf658932174ef5349 | |
parent | 219230e37824ba8ddb6113a7756dc2aa1ee2b0f2 (diff) | |
download | bootable_recovery-005b3a5dc1d1315da95b8961dfbe3c9b9fa5ccc5.zip bootable_recovery-005b3a5dc1d1315da95b8961dfbe3c9b9fa5ccc5.tar.gz bootable_recovery-005b3a5dc1d1315da95b8961dfbe3c9b9fa5ccc5.tar.bz2 |
minui: don't drop EV_ABS (touch) events
Change-Id: I8d16c5cffb28d6621c8079ed6cb38381cc9d43b5
-rw-r--r-- | minui/events.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |