Fix keyboardInput default option

This commit is contained in:
Ethan O'Brien 2025-06-03 23:56:14 -05:00
parent ecd96f8238
commit 8a306a7a63
No known key found for this signature in database
GPG Key ID: 7A6E7CCD3BD93AB1

View File

@ -549,7 +549,6 @@ class EmulatorJS {
this.enableMouseLock = core.options.supportsMouse;
this.retroarchOpts = core.retroarchOpts;
this.saveFileExt = core.save;
this.changeSettingOption("keyboardInput", (this.defaultCoreOpts.useKeyboard === true ? "enabled" : "disabled"), true);
} else if (k === "license.txt") {
this.license = new TextDecoder().decode(data[k]);
}
@ -4792,7 +4791,7 @@ class EmulatorJS {
addToMenu(this.localization("Direct Keyboard Input"), "keyboardInput", {
"disabled": this.localization("Disabled"),
"enabled": this.localization("Enabled"),
}, "disabled", inputOptions, true);
}, ((this.defaultCoreOpts && this.defaultCoreOpts.keyboardInput === true) ? "enabled" : "disabled"), inputOptions, true);
checkForEmptyMenu(inputOptions);