Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
return litest_create_device_with_overrides(which, NULL, NULL, NULL, NULL);
}
-int
-litest_handle_events(struct litest_device *d)
-{
- struct pollfd fd;
-
- fd.fd = libinput_get_fd(d->libinput);
- fd.events = POLLIN;
-
- while (poll(&fd, 1, 1))
- libinput_dispatch(d->libinput);
-
- return 0;
-}
-
void
litest_delete_device(struct litest_device *d)
{
void
litest_delete_device(struct litest_device *d);
-int
-litest_handle_events(struct litest_device *d);
-
void
litest_event(struct litest_device *t,
unsigned int type,