Some camera controls

This commit is contained in:
2024-07-21 13:40:45 +02:00
parent 6d147ee5d0
commit 17029a0a14
6 changed files with 196 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ local oldPrint = print
function print(...)
local string = ""
for _, v in ipairs({...}) do
string = string .. v
string = string .. tostring(v)
end
love.mqtt.send("controller/stdout", string)
oldPrint(...)
@@ -86,6 +86,12 @@ function love.gamepadpressed(joystick, button)
end
end
function love.joystickaxis(joystick, axis, value)
if love.joystickaxis2 then
safeCall(love.joystickaxis2, joystick, axis, value)
end
end
function love.mqtt.onError(message)
print("MQTT error: " .. message)
end