am 98e2c509: am 78aa50d3: Merge "recovery: Handle EV_SW events"

* commit '98e2c509a636db7c4d9a89c086e8d4ac03a6970b':
  recovery: Handle EV_SW events
This commit is contained in:
Elliott Hughes 2015-02-11 02:55:28 +00:00 committed by Android Git Automerger
commit 91f40d9bf5

View file

@ -80,8 +80,8 @@ int ev_init(ev_callback input_cb, void *data)
} }
/* TODO: add ability to specify event masks. For now, just assume /* TODO: add ability to specify event masks. For now, just assume
* that only EV_KEY and EV_REL event types are ever needed. */ * 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)) { if (!test_bit(EV_KEY, ev_bits) && !test_bit(EV_REL, ev_bits) && !test_bit(EV_SW, ev_bits)) {
close(fd); close(fd);
continue; continue;
} }