Beispiel #1
0
static void send_events(void)
{
	int nb;

	for (nb = 0; nb < NB_TEST; ++nb) {
		send_rel_move(fd, X_VALUE, Y_VALUE);
		usleep(1000);
	}
}
Beispiel #2
0
static void send_information(void)
{
	int nb;

	SAFE_IOCTL(NULL, fd2, EVIOCGRAB, 1);
	tst_resm(TINFO, "The virtual device was grabbed");

	for (nb = 0; nb < NB_TEST; ++nb) {
		send_rel_move(fd, 10, 1);
		usleep(1000);
	}

	SAFE_CLOSE(NULL, fd2);
}