Probe: Don't aggressively detect type as keyboard
Some devices like mice have keys. Our probe logic was based on
xf86-input-evdev, and that software will indeed ultimately classify
such devices as keyboard, but it still also sends relative events
through, so the mistake in classification is acceptable.
We lock onto a single device type, so we can't have a device be a
keyboard and mouse.
With this change, we only consider keyboards as a last resort, so that
we detect mice correctly.
BUG=chromium:359754
TEST=Manually tested with problematic mice
Change-Id: I573262b33184f2a267306d0bc520cdedf03e9508
Reviewed-on: https://chromium-review.googlesource.com/193170
Reviewed-by: Andrew de los Reyes <adlr@chromium.org>
Tested-by: Andrew de los Reyes <adlr@chromium.org>
Commit-Queue: Andrew de los Reyes <adlr@chromium.org>
1 file changed