diff options
Diffstat (limited to 'controller.lua')
-rw-r--r-- | controller.lua | 6 |
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 |