aboutsummaryrefslogtreecommitdiffstats
path: root/minui
diff options
context:
space:
mode:
authorAjay Dudani <adudani@codeaurora.org>2015-02-04 16:51:34 -0800
committerElliott Hughes <enh@google.com>2015-02-10 16:28:07 -0800
commit07d9627d7cf31e03b778bc4b1c918d552680cd28 (patch)
treec983f27f5b1cd5b9b44d365f082c8a318ce2b418 /minui
parentbf0be350ddf4fb75178f33ee64706cb795ceade0 (diff)
downloadbootable_recovery-07d9627d7cf31e03b778bc4b1c918d552680cd28.zip
bootable_recovery-07d9627d7cf31e03b778bc4b1c918d552680cd28.tar.gz
bootable_recovery-07d9627d7cf31e03b778bc4b1c918d552680cd28.tar.bz2
recovery: Handle EV_SW events
Change-Id: I29c13a941067cd1bbdced3bd67fd93293347d7b6
Diffstat (limited to 'minui')
-rw-r--r--minui/events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/minui/events.c b/minui/events.c
index d98a774..9e4255d 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;
}