mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
move autofire interval to settings menu
This commit is contained in:
parent
b3d486c7d1
commit
815e44610d
@ -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()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user