diff options
Diffstat (limited to 'minui')
-rw-r--r-- | minui/events.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/minui/events.c b/minui/events.c index 2918afa..a619df6 100644 --- a/minui/events.c +++ b/minui/events.c @@ -23,6 +23,7 @@ #include <linux/input.h> #include "minui.h" +#include "cutils/log.h" #define MAX_DEVICES 16 #define MAX_MISC_FDS 16 @@ -69,7 +70,7 @@ 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)) { + if (!test_bit(EV_KEY, ev_bits) && !test_bit(EV_REL, ev_bits) && !test_bit(EV_ABS, ev_bits)) { close(fd); continue; } |