handle space key

We're going to run into a few of these..
This commit is contained in:
Kartik K. Agaram 2022-05-01 23:35:15 -07:00
parent 32eed397e7
commit 886717f51f
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ end
function love.keypressed(key, scancode, isrepeat)
if key == 'return' then
table.insert(lines, '')
elseif key == 'space' then
lines[#lines] = lines[#lines]..' '
else
lines[#lines] = lines[#lines]..key
end