diff --git a/API.md b/API.md index 1419734..f0fd242 100644 --- a/API.md +++ b/API.md @@ -312,7 +312,7 @@ int main(void) uev_t 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."); diff --git a/examples/joystick.c b/examples/joystick.c index 8bce372..b3f45fe 100644 --- a/examples/joystick.c +++ b/examples/joystick.c @@ -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.");