From 662efed15af3b2044539231d09531662254aae7a Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 14 Sep 2025 10:08:53 +1000 Subject: [PATCH] add start platform function --- platform.d | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/platform.d b/platform.d index ab7b4be..ba3b571 100644 --- a/platform.d +++ b/platform.d @@ -348,8 +348,8 @@ struct PlatformWindow bool locked_cursor; bool close; + SysThread thread; MessageQueue msg_queue; - u32 input_idx; Inputs[2] inputs; TicketMut input_mutex; @@ -506,6 +506,12 @@ CreateWindow(string name, u16 width, u16 height) return window; }; +void +StartPlatformThread(PlatformWindow* window) +{ + window.thread = CreateThread(&HandleEvents, window); +} + bool LockCursor(PlatformWindow* window) {