I have a straight forward CPP flow as follows:
emscripten_set_main_loop_arg(one_iter,this, 0, 1);
while (1) {
one_iter(this);
SDL_Delay(time_to_next_frame());
}
in my JS it looks like this:
function init() {
myObj = new Module.myObj();
myObj.myAction() ;
}
but myObj works great.
but the next js line never gets executed.
Any ideas how I can add myAction functionality to the mainloop?
Help much appreciated!