diff --git a/scene/game_config.lua b/scene/game_config.lua index ed0877e..b921dd3 100644 --- a/scene/game_config.lua +++ b/scene/game_config.lua @@ -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 diff --git a/scene/mode_select.lua b/scene/mode_select.lua index 071cb61..1ffe0f0 100755 --- a/scene/mode_select.lua +++ b/scene/mode_select.lua @@ -59,7 +59,7 @@ function ModeSelectScene:render() end function ModeSelectScene:onInputPress(e) - if e.input == "menu_decide" then + if e.input == "menu_decide" or e.scancode == "return" then current_mode = self.menu_state.mode current_ruleset = self.menu_state.ruleset config.current_mode = current_mode @@ -76,7 +76,7 @@ function ModeSelectScene:onInputPress(e) elseif e.input == "left" or e.input == "right" or e.scancode == "left" or e.scancode == "right" then self:switchSelect() playSE("cursor_lr") - elseif e.input == "menu_back" then + elseif e.input == "menu_back" or e.scancode == "delete" or e.scancode == "backspace" then scene = TitleScene() end end diff --git a/scene/title.lua b/scene/title.lua index ed5b8ba..3c6b48a 100644 --- a/scene/title.lua +++ b/scene/title.lua @@ -58,7 +58,7 @@ function TitleScene:changeOption(rel) end function TitleScene:onInputPress(e) - if e.input == "menu_decide" then + if e.input == "menu_decide" or e.scancode == "return" then playSE("main_decide") scene = main_menu_screens[self.main_menu_state]() elseif e.input == "up" or e.scancode == "up" then @@ -67,7 +67,7 @@ function TitleScene:onInputPress(e) elseif e.input == "down" or e.scancode == "down" then self:changeOption(1) playSE("cursor") - elseif e.input == "menu_back" then + elseif e.input == "menu_back" or e.scancode == "backspace" or e.scancode == "delete" then love.event.quit() end end