summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Software/libevdev.mdwn4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/libevdev.mdwn b/Software/libevdev.mdwn
index 7ae48454..970f26a8 100644
--- a/Software/libevdev.mdwn
+++ b/Software/libevdev.mdwn
@@ -2,7 +2,7 @@
<span style="color:green">struct libevdev</span> *dev = NULL;
int fd;
int rc = 1;
-
+
fd = open("/dev/input/event0", O_RDONLY|O_NONBLOCK);
rc = <span style="color:green">libevdev_new_from_fd</span>(fd, &dev);
if (rc < 0) {
@@ -19,7 +19,7 @@
printf("This device does not look like a mouse\n");
exit(1);
}
-
+
do {
struct input_event ev;
rc = <span style="color:green">libevdev_next_event</span>(dev, <span style="color:green">LIBEVDEV_READ_FLAG_NORMAL</span>, &ev);