Commit 7aa32760 authored by Peter Hutterer's avatar Peter Hutterer

eventcomm: ignore key repeat events

Usually doesn't happen, but the evtest output in
actually has repeat events for the button. Ignore them if they happen.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent fc9f490a
......@@ -732,6 +732,10 @@ EventReadHwState(InputInfoPtr pInfo,
case EV_KEY:
/* ignore hw repeat events */
if (ev.value > 1)
v = (ev.value ? TRUE : FALSE);
switch (ev.code) {
case BTN_LEFT:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment