Some camera controls
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user