Tune emulator input defaults

This commit is contained in:
Christian Johannesen 2026-10-07 20:57:31 +02:00
parent 57d30e38d4
commit 8ed968c61b
2 changed files with 7 additions and 0 deletions

View file

@ -32,6 +32,8 @@ Open [http://localhost:8134](http://localhost:8134), or click a **Run program**
link in the table. The app runs the VICE x64sc core through WebAssembly and
downloads the selected PRG through its own backend, avoiding browser CORS
restrictions. Click inside the emulator to enable keyboard input and sound.
Direct keyboard input is enabled by default, mouse locking is disabled, and
moving the pointer anywhere over the emulator reveals its control bar.
The app reads the public repository tree at runtime. New `.prg` files pushed to
the configured branch appear after clicking **Refresh list**; rebuilding the

View file

@ -53,6 +53,11 @@ function startEmulator(programPath) {
window.EJS_pathtodata = 'https://cdn.emulatorjs.org/stable/data/';
window.EJS_startOnLoaded = true;
window.EJS_language = 'en-US';
window.EJS_defaultOptions = {
menubarBehavior: 'anywhere',
keyboardInput: 'enabled',
lockMouse: 'disabled'
};
const loader = document.createElement('script');
loader.src = `${window.EJS_pathtodata}loader.js`;