summaryrefslogtreecommitdiffhomepage
path: root/controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'controller.lua')
-rw-r--r--controller.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/controller.lua b/controller.lua
index e0bdab1..53b1db9 100644
--- a/controller.lua
+++ b/controller.lua
@@ -59,6 +59,7 @@ end
-- Checks if given action of given set is down
function Controller.isDown(set, action)
+ if set == nil then return end
if set.joystick == nil then
return love.keyboard.isDown(set[action])
else