Fixed C getkey timeout

This commit is contained in:
Bruce Hill 2020-04-18 22:59:59 -07:00
parent a4a9639f37
commit bf9cb705f1

View File

@ -21,7 +21,7 @@ int main(void)
btui_flush(bt);
int mouse_x = -1, mouse_y = -1;
int key = btui_getkey(bt, 0, &mouse_x, &mouse_y);
int key = btui_getkey(bt, -1, &mouse_x, &mouse_y);
btui_clear_screen(bt);
switch (key) {
case 'q': case KEY_CTRL_C: done = 1; break;