add start platform function
This commit is contained in:
parent
9c6f08d2a0
commit
662efed15a
@ -348,8 +348,8 @@ struct PlatformWindow
|
|||||||
bool locked_cursor;
|
bool locked_cursor;
|
||||||
bool close;
|
bool close;
|
||||||
|
|
||||||
|
SysThread thread;
|
||||||
MessageQueue msg_queue;
|
MessageQueue msg_queue;
|
||||||
|
|
||||||
u32 input_idx;
|
u32 input_idx;
|
||||||
Inputs[2] inputs;
|
Inputs[2] inputs;
|
||||||
TicketMut input_mutex;
|
TicketMut input_mutex;
|
||||||
@ -506,6 +506,12 @@ CreateWindow(string name, u16 width, u16 height)
|
|||||||
return window;
|
return window;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void
|
||||||
|
StartPlatformThread(PlatformWindow* window)
|
||||||
|
{
|
||||||
|
window.thread = CreateThread(&HandleEvents, window);
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
LockCursor(PlatformWindow* window)
|
LockCursor(PlatformWindow* window)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user