summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-24 01:25:07 +0200
committerAki <nthirtyone@gmail.com>2016-08-24 01:25:07 +0200
commitdb941f6b371774b7b9f5de0e8db86a9b4f5a1d7b (patch)
tree1c25d3e9a2917852d5a7037bceb20f8e9d28eb74
parentcd72b080bd949d9ec0b42c29e0ea31e300464dad (diff)
downloadroflnauts-db941f6b371774b7b9f5de0e8db86a9b4f5a1d7b.zip
roflnauts-db941f6b371774b7b9f5de0e8db86a9b4f5a1d7b.tar.gz
roflnauts-db941f6b371774b7b9f5de0e8db86a9b4f5a1d7b.tar.bz2
get sets
-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