summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/eventcomm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eventcomm.c b/src/eventcomm.c
index 3a9d45d..5f55141 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -732,6 +732,10 @@ EventReadHwState(InputInfoPtr pInfo,
}
break;
case EV_KEY:
+ /* ignore hw repeat events */
+ if (ev.value > 1)
+ break;
+
v = (ev.value ? TRUE : FALSE);
switch (ev.code) {
case BTN_LEFT: