From b80ba2f5a7bf7acbbbf14c1325fca8df3c39cac4 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 14 Jan 2017 23:03:35 +0100 Subject: Fixed gamepad bug and overwrite bug --- controller.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'controller.lua') 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 -- cgit v1.1