uinput_event
if ((act->dx != 0 && uinput_event(fd, EV_REL, REL_X, act->dx) < 0) ||
(act->dy != 0 && uinput_event(fd, EV_REL, REL_Y, act->dy) < 0) ||
(act->dz != 0 && uinput_event(fd, EV_REL, REL_WHEEL, -act->dz) < 0))
if (uinput_event(fd, EV_KEY, evdev_buttons[i],
if (uinput_event(fd, EV_SYN, SYN_REPORT, 0) < 0)