From bdaba41cbe7f10c750c31b66dd2696e6b6ea7436 Mon Sep 17 00:00:00 2001 From: dam Date: Mon, 16 Oct 2023 01:23:40 +0100 Subject: Improved input reading to wait for event instead of pooling. --- ttt.jai | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ttt.jai') diff --git a/ttt.jai b/ttt.jai index 0515262..c834bf1 100644 --- a/ttt.jai +++ b/ttt.jai @@ -1227,8 +1227,8 @@ main :: () { key: TUI.Key = #char "d"; while(key != #char "q") { __mark := get_temporary_storage_mark(); + sleep_milliseconds(1000); key = TUI.get_key(3000); - // sleep_milliseconds(10); if key != xx TUI.Keys.None print_character(key); else write_string("-"); -- cgit v1.2.3