summaryrefslogtreecommitdiff
path: root/inputdev.c
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>2012-12-26 17:31:10 +0100
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>2012-12-26 17:31:10 +0100
commit066739eb80ca494b4239431675ec6686e3ed2100 (patch)
tree3a93a462067e14344ff287b1b2f47284746653cf /inputdev.c
parent93fb29642286df305fd9f68830dad34a12fca5b5 (diff)
downloadvdr-plugin-inputdev-066739eb80ca494b4239431675ec6686e3ed2100.tar.gz
vdr-plugin-inputdev-066739eb80ca494b4239431675ec6686e3ed2100.tar.bz2
report only EV_KEY events for now
Diffstat (limited to 'inputdev.c')
-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;