Controller works quite well now
This commit is contained in:
@@ -45,8 +45,8 @@ function love.draw(...)
|
||||
local centerY = love.graphics.getHeight() / 2
|
||||
|
||||
-- Calculate textX and textY
|
||||
--local textX = math.floor(centerX - (font:getWidth(text) / 2))
|
||||
--local textY = math.floor(centerY - (font:getHeight(text) / 2))
|
||||
local textX = math.floor(centerX - (font:getWidth(text) / 2))
|
||||
local textY = math.floor(centerY - (font:getHeight(text) / 2))
|
||||
local textX, textY = 10, 10
|
||||
|
||||
local realText
|
||||
@@ -77,6 +77,15 @@ function love.update(...)
|
||||
end
|
||||
end
|
||||
|
||||
function love.gamepadpressed(joystick, button)
|
||||
if button == "guide" then
|
||||
love.event.quit()
|
||||
end
|
||||
if love.gamepadpressed2 then
|
||||
safeCall(love.gamepadpressed2, joystick, button)
|
||||
end
|
||||
end
|
||||
|
||||
function love.mqtt.onError(message)
|
||||
print("MQTT error: " .. message)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user