Add input_device
Add a class for handling linux 'evdev' input devices.
By itself, this module can be run as a python version of the "evtest"
tool, or the InputDevice class can be used in other python scripts.
BUG=chromium-os:12425
TEST=(1) input_device -d /dev/input/event4
-> Display device info, and show incoming input events
(2) input_device -t
-> Auto detect a touchpad device, display its props, then show
events.
Change-Id: Ibaa14f54617f85070212347e5685d0c51598f321
Reviewed-on: http://gerrit.chromium.org/gerrit/3634
Reviewed-by: Joseph Shyh-In Hwang <josephsih@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
1 file changed