Forgot that the code used "enter" instead of "return" in the input config scene before, so changed it back.

This commit is contained in:
nightmareci 2020-11-08 13:06:29 -08:00
parent 863c614a4c
commit 3479374686

View File

@ -58,10 +58,10 @@ function ConfigScene:render()
end end
end end
if self.input_state > table.getn(configurable_inputs) then if self.input_state > table.getn(configurable_inputs) then
love.graphics.print("press return to confirm, delete/backspace to retry" .. (config.input and ", escape to cancel" or "")) love.graphics.print("press enter to confirm, delete/backspace to retry" .. (config.input and ", escape to cancel" or ""))
else else
love.graphics.print("press key or joystick input for " .. configurable_inputs[self.input_state] .. ", tab to skip" .. (config.input and ", escape to cancel" or ""), 0, 0) love.graphics.print("press key or joystick input for " .. configurable_inputs[self.input_state] .. ", tab to skip" .. (config.input and ", escape to cancel" or ""), 0, 0)
love.graphics.print("return, delete, backspace, tab, arrows, and escape can't be changed", 0, 20) love.graphics.print("enter, delete, backspace, tab, arrows, and escape can't be changed", 0, 20)
end end
end end
@ -76,7 +76,7 @@ end
function ConfigScene:onInputPress(e) function ConfigScene:onInputPress(e)
if e.type == "key" then if e.type == "key" then
-- return, delete, backspace, tab, arrows, and escape are reserved and can't be remapped -- enter, delete, backspace, tab, arrows, and escape are reserved and can't be remapped
if e.scancode == "escape" and config.input then if e.scancode == "escape" and config.input then
scene = TitleScene() scene = TitleScene()
elseif self.input_state > table.getn(configurable_inputs) then elseif self.input_state > table.getn(configurable_inputs) then