Filter kernel key-repeat events

These events can cause problems on some devices, like combination
touch/keyboard devices. In the device we have (Logitech TK820), we get
repeated BTN events that are really just supposed to indicate the
finger count, but end up sending events into the gesture recognizer
without new finger positions, triggering bugs.

Additionally, these events are unneeded, because X does key repeat for
us.

Since these events have no benefit and cause issues, filter them.

BUG=chromium:389178
TEST=TK820 keyboard touchpad doesn't exhibit jittery behavior. Also,
key repeat still works.

Change-Id: Ib8bcdc7db9df8863b996222c12afefa91539c47d
Reviewed-on: https://chromium-review.googlesource.com/205775
Reviewed-by: Dennis Kempin <denniskempin@chromium.org>
Commit-Queue: Andrew de los Reyes <adlr@chromium.org>
Tested-by: Andrew de los Reyes <adlr@chromium.org>
2 files changed
tree: ad02b371027d341eb8cd1daff69df56d59fb20dc
  1. include/
  2. src/
  3. common.mk
  4. libevdev-cros.pc
  5. Makefile