Skip to content

Commit

Permalink
Update wasd_and_mouse.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yaorenmao committed Jun 22, 2024
1 parent 449db6e commit 8cc6390
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions wasd_and_mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,4 +355,18 @@
}

window.addEventListener('resize', onWindowResize);

// Expose functions to the global scope
window.MyLibrary = {
newUI,
setTxtField,
setSquare,
setCheckbox,
setButton,
setSlider,
setText,
removeElement,
makeElementDraggable,
syncSliderAndTextField
};
})();

0 comments on commit 8cc6390

Please sign in to comment.