summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-08-01 02:35:57 +0200
committerAki <nthirtyone@gmail.com>2017-08-01 02:35:57 +0200
commit264a773d7313cffab491c9fbdb14a14480c8f73f (patch)
treefcff9a02f31b1f137af702ed42662092360d4328
parentb5a35c0300d9a3c4b97836a313cc17815f1db75c (diff)
downloadroflnauts-264a773d7313cffab491c9fbdb14a14480c8f73f.zip
roflnauts-264a773d7313cffab491c9fbdb14a14480c8f73f.tar.gz
roflnauts-264a773d7313cffab491c9fbdb14a14480c8f73f.tar.bz2
Remove joysticks pop-like
-rw-r--r--not/Settings.lua4
1 files changed, 1 insertions, 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)