multi-touch-dev team mailing list archive
-
multi-touch-dev team
-
Mailing list archive
-
Message #00409
evemu - Kernel device emulation
As part of the effort to produce an MT device and gesture testing framework,
meet evemu, which provides tools to emulate kernel evdev devices. The
project can currently be found at
http://bitmath.org/code/evemu/
and will appear on bazaar and utouch during the week.
Compared to evtest, the major differences are that these tools allow you to
first setup a device based on a description, hook something to it like pymt or
mtview, and then playback events through the device. And it works for MT [1].
To describe a device in your machine:
sudo evemu-describe /dev/input/eventX > device.prop
To record data from your device:
sudo evemu-record /dev/input/eventX > device.event
To remotely setup a copy of the device:
sudo evemu-device device.prop
The device node will be printed on the terminal, and will stay valid until the
program is terminated. To replay the input stream (beware that pointer clicks
can execute commands in your window manager):
sudo evemu-play /dev/input/eventY < device.event
More interestingly, one can first setup a program like mtview to grab the input:
sudo mtview /dev/input/eventY
and then replay the data, which will show every individual finger on the screen.
Given the evemu lib, one can time gestures by first setting up the device,
replay gestures on the device, and time the appearance of gestures in grail.
Enjoy,
Henrik
[1] For MT slots devices, a kernel patch is needed that is not upstream yet.
Follow ups