add start platform function

This commit is contained in:
Matthew 2025-09-14 10:08:53 +10:00
parent 9c6f08d2a0
commit 662efed15a

View File

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