move autofire interval to settings menu

This commit is contained in:
z 2026-01-18 12:18:09 +13:00
parent b3d486c7d1
commit 815e44610d

View File

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