From db941f6b371774b7b9f5de0e8db86a9b4f5a1d7b Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 24 Aug 2016 01:25:07 +0200 Subject: get sets --- controller.lua | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.1