mach: wasm: Implement setShouldClose for wasm
This commit is contained in:
parent
2d53b8bdfd
commit
772a821ce1
3 changed files with 17 additions and 3 deletions
|
|
@ -274,6 +274,10 @@ const mach = {
|
|||
return cv.canvas.height;
|
||||
},
|
||||
|
||||
machEmitCloseEvent() {
|
||||
window.dispatchEvent(new Event("mach-close"));
|
||||
},
|
||||
|
||||
machEventShift() {
|
||||
if (mach.events.length < 0)
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue