inputs now asynchronous
This commit is contained in:
parent
27f14e99c2
commit
d96273ab5b
2
src/dlib
2
src/dlib
@ -1 +1 @@
|
|||||||
Subproject commit 29a98de0e05cb04001b42a55b1ae094ab42f2ab1
|
Subproject commit 5ff3cd91d73464e88bff3daef94a0a3bea2c3cb7
|
||||||
@ -19,17 +19,18 @@ void main(string[] argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
PlatformWindow window = CreateWindow("Editor", 1920, 1080);
|
PlatformWindow window = CreateWindow("Editor", 1920, 1080);
|
||||||
|
StartPlatformThread(&window);
|
||||||
|
|
||||||
Editor editor = CreateEditor(&window, buffer, buffer_name);
|
Editor editor = CreateEditor(&window, buffer, buffer_name);
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
HandleEvents(&window);
|
Inputs* inputs = GetEvents(&window);
|
||||||
if (window.close)
|
if (window.close)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
Cycle(&editor, &window.inputs);
|
Cycle(&editor, inputs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user