Revert "Separate in-game bindings from menu bindings"

This reverts commit 0fce4b632f.
This commit caused issue #41. Will resolve ASAP.
This commit is contained in:
Ishaan Bhardwaj
2021-10-21 20:52:42 -04:00
parent 0fce4b632f
commit 7495c4ad04
12 changed files with 44 additions and 140 deletions

View File

@@ -84,17 +84,17 @@ 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 = SettingsScene()
elseif e.input == "menu_up" then
elseif e.input == "up" or e.scancode == "up" then
playSE("cursor")
self.highlight = Mod1(self.highlight-1, optioncount)
elseif e.input == "menu_down" then
elseif e.input == "down" or e.scancode == "down" then
playSE("cursor")
self.highlight = Mod1(self.highlight+1, optioncount)
elseif e.input == "menu_left" then
elseif e.input == "left" or e.scancode == "left" then
if not self.options[self.highlight][3] then
playSE("cursor_lr")
local option = ConfigScene.options[self.highlight]
@@ -105,7 +105,7 @@ function ConfigScene:onInputPress(e)
sld:update()
playSE("cursor")
end
elseif e.input == "menu_right" then
elseif e.input == "right" or e.scancode == "right" then
if not self.options[self.highlight][3] then
playSE("cursor_lr")
local option = ConfigScene.options[self.highlight]
@@ -116,7 +116,7 @@ function ConfigScene:onInputPress(e)
sld:update()
playSE("cursor")
end
elseif e.input == "menu_back" then
elseif e.input == "menu_back" or e.scancode == "delete" or e.scancode == "backspace" then
loadSave()
scene = SettingsScene()
end