Code: Select all
function love.load()
love.window.setMode(320,240,{vsync=true, fullscreen=false; resizable=false})
love.graphics.setColor( 255, 255, 255, 255)
end
function love.draw()
if (love.keyboard.isDown( "up" )) then love.graphics.print('UP', 10, 10) end
if (love.keyboard.isDown( "down" )) then love.graphics.print('DOWN', 10, 20) end
if (love.keyboard.isDown( "left" )) then love.graphics.print('LEFT', 10, 30) end
if (love.keyboard.isDown( "right" )) then love.graphics.print('RIGHT', 10, 40) end
if (love.keyboard.isDown( "space" )) then love.graphics.print('SPACE', 10, 50) end
if (love.keyboard.isDown( "kp6" )) then love.graphics.print('KP6 (right)', 10, 60) end
if (love.keyboard.isDown( "kp2" )) then love.graphics.print('KP2 (down)', 10, 70) end
if (love.keyboard.isDown( "kp8" )) then love.graphics.print('KP8 (up)', 10, 80) end
if (love.keyboard.isDown( "kp4" )) then love.graphics.print('KP4 (left)', 10, 90) end
end