summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-11 03:55:28 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-11 03:55:28 +0100
commit91f40d9bf56e4bb85fb46d0774296214353dae87 (patch)
treee7d07b849c11191ee08a9a72d9639fff8f344b67
parentam ee7127cc: am bf0be350: Merge "recovery: Generate libminui dynamic library" (diff)
parentam 78aa50d3: Merge "recovery: Handle EV_SW events" (diff)
downloadandroid_bootable_recovery-91f40d9bf56e4bb85fb46d0774296214353dae87.tar
android_bootable_recovery-91f40d9bf56e4bb85fb46d0774296214353dae87.tar.gz
android_bootable_recovery-91f40d9bf56e4bb85fb46d0774296214353dae87.tar.bz2
android_bootable_recovery-91f40d9bf56e4bb85fb46d0774296214353dae87.tar.lz
android_bootable_recovery-91f40d9bf56e4bb85fb46d0774296214353dae87.tar.xz
android_bootable_recovery-91f40d9bf56e4bb85fb46d0774296214353dae87.tar.zst
android_bootable_recovery-91f40d9bf56e4bb85fb46d0774296214353dae87.zip
-rw-r--r--minui/events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/minui/events.c b/minui/events.c
index d98a774ef..9e4255dd7 100644
--- a/minui/events.c
+++ b/minui/events.c
@@ -80,8 +80,8 @@ int ev_init(ev_callback input_cb, void *data)
}
/* TODO: add ability to specify event masks. For now, just assume
- * that only EV_KEY and EV_REL event types are ever needed. */
- if (!test_bit(EV_KEY, ev_bits) && !test_bit(EV_REL, ev_bits)) {
+ * that only EV_KEY, EV_REL & 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)) {
close(fd);
continue;
}