Fixed an issue with controllers on the menu

This commit is contained in:
Ishaan Bhardwaj 2020-12-29 22:55:51 -05:00
parent 8008315994
commit a89bf05cab

View File

@ -102,7 +102,7 @@ function TitleScene:onInputPress(e)
elseif e.input == "menu_back" or e.scancode == "backspace" or e.scancode == "delete" then elseif e.input == "menu_back" or e.scancode == "backspace" or e.scancode == "delete" then
love.event.quit() love.event.quit()
else else
self.text = self.text .. e.scancode self.text = self.text .. (e.scancode ~= nil and e.scancode or "")
if self.text == "ffffff" then if self.text == "ffffff" then
self.text_flag = true self.text_flag = true
end end