From d1d6d595da5594ae7b103d8617a7b30f476c193a Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 21 Jul 2017 21:49:59 -0400 Subject: [PATCH] joystick support for ios! --- main.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 01db26b..f4507c0 100644 --- a/main.lua +++ b/main.lua @@ -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 \ No newline at end of file +end + +