inputs now asynchronous

This commit is contained in:
Matthew 2025-09-14 10:12:21 +10:00
parent 27f14e99c2
commit d96273ab5b
2 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit 29a98de0e05cb04001b42a55b1ae094ab42f2ab1
Subproject commit 5ff3cd91d73464e88bff3daef94a0a3bea2c3cb7

View File

@ -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);
}
}