add start platform function
This commit is contained in:
parent
9c6f08d2a0
commit
662efed15a
@ -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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user