Fixed an issue with controllers on the menu

pull/13/head
Ishaan Bhardwaj 2020-12-29 22:55:51 -05:00
parent 8008315994
commit a89bf05cab
1 changed files with 1 additions and 1 deletions

View File

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