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()) {