elput: Improve checks for keyboard & pointer devices
authorChris Michael <cp.michael@samsung.com>
Thu, 8 Dec 2016 19:30:41 +0000 (14:30 -0500)
committerChris Michael <cp.michael@samsung.com>
Thu, 8 Dec 2016 19:32:22 +0000 (14:32 -0500)
commit8ebf4cd972674406b1fbfc497617996f1d7f4462
treefedc1642b1c9ec2b1690838a8ad497400c5be631
parentb66324644c3466bfd58df10631fb82f9a1d4815f
elput: Improve checks for keyboard & pointer devices

Some devices reported by libinput show up as both keyboard and mouse,
even tho they are physically only just a keyboard or just a mouse.
When a device gets added, we can verify if it is actually a mouse by
checking if the device has BTN_LEFT (and for keyboards, check
KEY_ENTER). This stops us from getting multiple mouse pointers
reported when we really only have one.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/elput/elput_evdev.c