summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inputdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/inputdev.c b/inputdev.c
index 2a168e4..d5c56cb 100644
--- a/inputdev.c
+++ b/inputdev.c
@@ -316,8 +316,8 @@ void cInputDevice::handle(void)
return;
}
- // \todo: do something useful with EV_SYN...
- if (ev.type == EV_SYN || ev.type >= EV_MAX)
+ // \todo: do something useful with the other events...
+ if (ev.type != EV_KEY)
// ignore events which are no valid key events
return;