mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-17 10:29:31 +00:00
Update example, use /dev/input/js0, the first joystick
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
951f959549
commit
c4ac2eae5d
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -78,7 +78,7 @@ int main(void)
|
||||
uev_t js1_watcher;
|
||||
uev_ctx_t ctx;
|
||||
|
||||
fd = open("/dev/input/js1", O_RDONLY, O_NONBLOCK);
|
||||
fd = open("/dev/input/js0", O_RDONLY, O_NONBLOCK);
|
||||
if (fd < 0)
|
||||
errx(errno, "Cannot find a joystick attached.");
|
||||
|
||||
|
||||
Reference in new issue
Block a user