Keyboard input in 0.8.0
Posted: Wed May 13, 2015 10:35 pm
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
if you need more bits of code / the file just ask... I need this Asap
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
Code: Select all
function love.keypressed(key)
...
elseif state == "recordscore" then
if key == "backspace" then
recordName = ""
else
recordName = recordName .. key
end
...
end