summaryrefslogtreecommitdiffhomepage
path: root/controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'controller.lua')
-rw-r--r--controller.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/controller.lua b/controller.lua
index e435d63..f035162 100644
--- a/controller.lua
+++ b/controller.lua
@@ -30,6 +30,12 @@ function Controller.registerSet(left, right, up, down, attack, jump, joystick)
return set
end
+-- Reset table of controls sets.
+function Controller.reset()
+ local t = {}
+ Controller.sets = t
+end
+
-- Get table of controls sets.
function Controller.getSets()
return Controller.sets