UI Components
emulators-ui
is a set of components that are used to create a js-dos player. You can use them one by one. To use emulators-ui
components, you need to import emulators-ui.js
.
Package provides following components:
https://raw.githubusercontent.com/js-dos/emulators-ui/main/src/emulators-ui.ts
Run
{}
#
emulatorsUi.network.resolveBundleAbstraction over XHR to download bundles by url
const bundle = await emulatorsUi.network.resolveBundle(<url>);
#
emulatrosUi.soundDefault audio processor, it will play sound using AudioNode
emulatorsUi.sound.audioNode(<command-interface>);
#
emulatorsUi.controls.domToKeyCodeThis function transform DOM keyCode to jsdos keyCode.
const jsdosKeyCode = emulatorsUi.controls.domToKeyCode(<dom-keycode>);