mirror of
https://github.com/kennethreitz/super-sphere.git
synced 2026-06-05 15:10:18 +00:00
joystick support for ios!
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user