diff --git a/test b/test index 45232f0..d71b263 100755 Binary files a/test and b/test differ diff --git a/test.cpp b/test.cpp index 34e84a8..3cea2b6 100644 --- a/test.cpp +++ b/test.cpp @@ -15,6 +15,9 @@ // this should be handled elsewhere, eventually, maybe, probably static void on_key(void *user, uint32_t keycode, uint32_t state) { + if (keycode == 1) { + exit(1); + } (void)user; const char *label = state ? "down" : "up "; printf("key %s: %u\n", label, keycode);