Code: Select all
function love.draw()
for event, key in love.event.poll() do
if event == 'keypressed' then
love.graphics.print(key, 0, 0)
end
end
end
function love.keypressed(key, unicode)
love.event.push('keypressed', key)
end
Code: Select all
function love.draw()
for event, key in love.event.poll() do
if event == 'keypressed' then
love.graphics.print(key, 0, 0)
end
end
end
function love.keypressed(key, unicode)
love.event.push('keypressed', key)
end