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) {