Skip to content

Commit 587ca7e

Browse files
JumpLinktuomasjjrasanen
authored andcommitted
Fix mouse example: show the emulated mouse in action
(cherry picked from commit 0821540c190e0c73f7bd0bc97ec601828c1f6af7) Signed-off-by: Tuomas Jorma Juhani Räsänen <tuomasjjrasanen@tjjr.fi>
1 parent d3e40e3 commit 587ca7e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

examples/mouse.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ int main(void)
3838
suinput_emit(uinput_fd, EV_REL, REL_X, 5);
3939
suinput_emit(uinput_fd, EV_REL, REL_Y, 5);
4040
suinput_syn(uinput_fd);
41+
42+
sleep(1);
4143
}
4244

4345
suinput_emit(uinput_fd, EV_KEY, BTN_LEFT, 1); /* Press. */

0 commit comments

Comments
 (0)