23 lines
512 B
Lua

local lastMessage = 0
function love.draw2()
love.graphics.setBackgroundColor(0, 0, 0)
local time
if lastMessage == 0 then
time = "Never"
else
time = love.timer.getTime() - time "s ago"
end
love.graphics.print("Last message received: " .. time, 5, 5)
end
function love.load()
love.graphics.setFont(love.graphics.newFont(15))
love.window.setFullscreen(true)
end
function love.gamepadpressed(joystick, button)
print("Pressed gamepad button " .. button .. " on joystick " .. joystick:getName())
end