From 264a773d7313cffab491c9fbdb14a14480c8f73f Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 1 Aug 2017 02:35:57 +0200 Subject: Remove joysticks pop-like --- not/Settings.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/not/Settings.lua b/not/Settings.lua index 358aa79..7d5f489 100644 --- a/not/Settings.lua +++ b/not/Settings.lua @@ -36,9 +36,7 @@ local function controllerLoad () local isJoystick = set[7] local joystick if isJoystick then - -- take and remove first joystick from list - joystick = joysticksList[1] - table.remove(joysticksList, 1) + joystick = table.remove(joysticksList, 1) end if not isJoystick or joystick then Controller.registerSet(set[1], set[2], set[3], set[4], set[5], set[6], joystick) -- cgit v1.1