summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--controller.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/controller.lua b/controller.lua
index 513af45..5ed7dd2 100644
--- a/controller.lua
+++ b/controller.lua
@@ -29,6 +29,11 @@ function Controller.registerSet(left, right, up, down, attack, jump, joystick)
return set
end
+-- Get table of controls sets.
+function Controller.getSets()
+ return Controller.sets
+end
+
-- Tests all sets if they have control assigned to given key and joystick.
function Controller.testSets(key, joystick)
for i,set in pairs(Controller.sets) do