Im trying to get input from keyboard, but I need to do this in 0.8.0 (I have to do a game for my School and the Laptops are Debian which are stuck on the 0.8.0 version)
Im supossed to get to the "recordscore" and then, enable input for typing 3 chars (Like some old arcades), and what i have is this
function love.keypressed(key)
...
elseif state == "recordscore" then
if key == "backspace" then
recordName = ""
else
recordName = recordName .. key
end
...
end
if you need more bits of code / the file just ask... I need this Asap
function love.keypressed(key, unicode)
...
elseif state == "recordscore" then
if unicode > 31 and unicode < 127 then
recordName = recordName..string.char(unicode)
end
end
...
end