From: Scott Worley Date: Fri, 17 Sep 2021 22:53:14 +0000 (-0700) Subject: Allow multiple keystrokes at the same time X-Git-Tag: v1.0.1 X-Git-Url: http://git.scottworley.com/keystroke-timestamps/commitdiff_plain/refs/tags/v1.0.1 Allow multiple keystrokes at the same time --- diff --git a/keystroke-timestamps.c b/keystroke-timestamps.c index 97936c6..3108678 100644 --- a/keystroke-timestamps.c +++ b/keystroke-timestamps.c @@ -79,7 +79,7 @@ int main (int argc, char **argv) struct input_event i; while (1) { fd_set ready_inputs = all_inputs; - if (select(maxfd+1, &ready_inputs, NULL, NULL, NULL) != 1) { + if (select(maxfd+1, &ready_inputs, NULL, NULL, NULL) < 1) { err(EX_IOERR, "select"); } for (int fd=0; fd <= maxfd; fd++) {