From d96273ab5b7ab1d8e20536b2cbf22d9d9aa223bc Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 14 Sep 2025 10:12:21 +1000 Subject: [PATCH] inputs now asynchronous --- src/dlib | 2 +- src/editor/main.d | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/dlib b/src/dlib index 29a98de..5ff3cd9 160000 --- a/src/dlib +++ b/src/dlib @@ -1 +1 @@ -Subproject commit 29a98de0e05cb04001b42a55b1ae094ab42f2ab1 +Subproject commit 5ff3cd91d73464e88bff3daef94a0a3bea2c3cb7 diff --git a/src/editor/main.d b/src/editor/main.d index 9e7028c..09e58b9 100644 --- a/src/editor/main.d +++ b/src/editor/main.d @@ -19,17 +19,18 @@ void main(string[] argv) } PlatformWindow window = CreateWindow("Editor", 1920, 1080); + StartPlatformThread(&window); Editor editor = CreateEditor(&window, buffer, buffer_name); while (true) { - HandleEvents(&window); + Inputs* inputs = GetEvents(&window); if (window.close) { break; } - Cycle(&editor, &window.inputs); + Cycle(&editor, inputs); } }