From 815e44610db6a515ca527add0bb731cec0631432 Mon Sep 17 00:00:00 2001 From: z Date: Sun, 18 Jan 2026 12:18:09 +1300 Subject: [PATCH] move autofire interval to settings menu --- data/src/emulator.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/data/src/emulator.js b/data/src/emulator.js index b33c114..b593112 100644 --- a/data/src/emulator.js +++ b/data/src/emulator.js @@ -4575,6 +4575,8 @@ class EmulatorJS { this.gameManager.setAltKeyEnabled(value === "enabled"); } else if (option === "lockMouse") { this.enableMouseLock = (value === "enabled"); + } else if (option === "autofireInterval") { + this.defaultAutoFireInterval = parseInt(value); } } menuOptionChanged(option, value) { @@ -5240,6 +5242,14 @@ class EmulatorJS { "enabled": this.localization("Enabled"), }, (this.enableMouseLock === true ? "enabled" : "disabled"), inputOptions, true); + addToMenu(this.localization("Autofire Interval"), "autofireInterval", { + "20": "20ms", + "50": "50ms", + "100": "100ms", + "200": "200ms", + "500": "500ms", + }, "100", inputOptions, true); + checkForEmptyMenu(inputOptions); if (this.saveInBrowserSupported()) {