summaryrefslogtreecommitdiffhomepage
path: root/controller.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-01-14 23:03:35 +0100
committerAki <nthirtyone@gmail.com>2017-01-14 23:03:35 +0100
commitb80ba2f5a7bf7acbbbf14c1325fca8df3c39cac4 (patch)
treedbe0a5fc49691b2c40196a79a2be149cd6b1e410 /controller.lua
parentc0d3e5782bb5010730f22819c6e4a6ade9e64834 (diff)
downloadroflnauts-b80ba2f5a7bf7acbbbf14c1325fca8df3c39cac4.zip
roflnauts-b80ba2f5a7bf7acbbbf14c1325fca8df3c39cac4.tar.gz
roflnauts-b80ba2f5a7bf7acbbbf14c1325fca8df3c39cac4.tar.bz2
Fixed gamepad bug and overwrite bug
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