From 8ed968c61bdec5f77ceeae19a46c6ce986309320 Mon Sep 17 00:00:00 2001 From: Christian Johannesen Date: Wed, 7 Oct 2026 20:57:31 +0200 Subject: [PATCH] Tune emulator input defaults --- README.md | 2 ++ public/app.js | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index cf829c0..35555b3 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/public/app.js b/public/app.js index c0afa5b..c27aee2 100644 --- a/public/app.js +++ b/public/app.js @@ -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`;