mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-24 16:48:18 -05:00
asmjs: Trying out async.
This commit is contained in:
parent
06d7f17aee
commit
f9e63f1d21
1 changed files with 7 additions and 0 deletions
|
@ -9,16 +9,23 @@
|
|||
|
||||
#include <emscripten.h>
|
||||
|
||||
extern "C" void entry_emscripten_yield()
|
||||
{
|
||||
// emscripten_sleep(0);
|
||||
}
|
||||
|
||||
namespace entry
|
||||
{
|
||||
const Event* poll()
|
||||
{
|
||||
entry_emscripten_yield();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const Event* poll(WindowHandle _handle)
|
||||
{
|
||||
BX_UNUSED(_handle);
|
||||
entry_emscripten_yield();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue