Added more input failsafes

This commit is contained in:
Ishaan Bhardwaj
2020-11-10 21:26:19 -05:00
parent 10a9d97848
commit 869a0f7ec5
3 changed files with 6 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ function ConfigScene:render()
end
function ConfigScene:onInputPress(e)
if e.input == "menu_decide" then
if e.input == "menu_decide" or e.scancode == "return" then
playSE("mode_decide")
saveConfig()
scene = TitleScene()
@@ -70,7 +70,7 @@ function ConfigScene:onInputPress(e)
playSE("cursor_lr")
local option = ConfigScene.options[self.highlight]
config.gamesettings[option[1]] = Mod1(config.gamesettings[option[1]]+1, #option[3])
elseif e.input == "menu_back" then
elseif e.input == "menu_back" or e.scancode == "delete" or e.scancode == "backspace" then
loadSave()
scene = TitleScene()
end