joystick support for ios!

This commit is contained in:
2017-07-21 21:49:59 -04:00
parent f9fdd03f52
commit d1d6d595da
+8 -1
View File
@@ -263,6 +263,11 @@ function love.touchpressed(id, x, y, dx, dy, pressure)
jump()
end
-- Joystick support.
function love.joystickpressed(joystick, button)
jump()
end
function love.update(dt)
if game.paused then
@@ -302,4 +307,6 @@ function love.update(dt)
love.event.quit()
end
end
end