diff --git a/WASM/basic_template.html b/WASM/basic_template.html index 1b2f8dd..28c6964 100644 --- a/WASM/basic_template.html +++ b/WASM/basic_template.html @@ -1,77 +1,114 @@ - - - - - - Emscripten-Generated Code - - - - - - - + + + // trigger PGE update + Module._olc_PGE_UpdateWindowSize(viewWidth, viewHeight); - - + // ensure canvas has focus + Module.canvas.focus(); + e.preventDefault(); + }); + + +