libevdev/test
Peter Hutterer 1acbfb3579 Add support for uinput device creation
This lets libevdev provide a relatively generic interface for the
creation of uinput devices so we don't need to duplicate this across
multiple projects.

Most of this is lifted from the current test implementation, with a
couple of minor changes.

EV_REP needs special handling:
   Kernel allows to set the EV_REP bit, it doesn't set REP_* bits (which we
   wrap anyway) but it will also set the default values (500, 33).

Device node is guessed based on the sysfs path:
   The sysfs path contains a eventN file, that corresponds to our
   /dev/input/eventN number. Use it so clients can quickly get the device
   node, without a libudev dependency.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-08-29 13:54:46 +10:00
..
.gitignore Set up a test harness 2013-06-04 11:39:33 +10:00
Makefile.am Add support for uinput device creation 2013-08-29 13:54:46 +10:00
test-common-uinput.c test: add uinput prop bits and the test for it 2013-07-11 09:09:14 +10:00
test-common-uinput.h test: add uinput prop bits and the test for it 2013-07-11 09:09:14 +10:00
test-common.c test: define a common device name 2013-07-05 09:11:34 +10:00
test-common.h test: define a common device name 2013-07-05 09:11:34 +10:00
test-event-names.c test: add test for libevdev_is_event_code(EV_SYN...) 2013-08-29 11:36:20 +10:00
test-int-queue.c test: prepare a common header file for all tests 2013-06-29 18:00:42 +10:00
test-libevdev-events.c Add support for EV_SW 2013-08-29 11:13:47 +10:00
test-libevdev-has-event.c Add functions to toggle LEDs on the device 2013-08-15 10:32:40 +10:00
test-libevdev-init.c test: define a common device name 2013-07-05 09:11:34 +10:00
test-main.c test: add test for event polling and SYN_DROPPED handling 2013-06-27 13:32:38 +10:00