summaryrefslogtreecommitdiffstats
path: root/minui
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-11 00:33:17 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-11 00:33:17 +0000
commit98e2c509a636db7c4d9a89c086e8d4ac03a6970b (patch)
tree4867b2fdf53e029c1c42f0f951784d689803521a /minui
parentee7127cca575967a90f3ede92cd05552000ccb14 (diff)
parent78aa50d3499e105d04e37ae3d3d92dad0d2c711c (diff)
downloadbootable_recovery-98e2c509a636db7c4d9a89c086e8d4ac03a6970b.zip
bootable_recovery-98e2c509a636db7c4d9a89c086e8d4ac03a6970b.tar.gz
bootable_recovery-98e2c509a636db7c4d9a89c086e8d4ac03a6970b.tar.bz2
am 78aa50d3: Merge "recovery: Handle EV_SW events"
* commit '78aa50d3499e105d04e37ae3d3d92dad0d2c711c': recovery: Handle EV_SW events
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;
}