fix: order player keys

Fix #6
This commit is contained in:
Kazhnuz 2020-08-02 13:41:58 +02:00
parent 16f3ea023b
commit 5e39c836ec
2 changed files with 4 additions and 4 deletions

View file

@ -0,0 +1 @@
return {"up", "down", "left", "right", "A", "B", "C", "start", "select"}

View file

@ -64,10 +64,9 @@ function OptionsMenu:addPlayerMenus()
local menu = "player" .. i
self:addMenu(menu)
Widgets.PlayerSubMenu(self, "inputs", i)
for k,w in pairs(v.keys) do
-- FIXME: make sure that you can use the order you want for the keys list
-- instead of a random one
Widgets.Key(self, i, k)
local keyList = require "datas.keys"
for j, key in ipairs(keyList) do
Widgets.Key(self, i, key)
end
Widgets.SubMenu(self, menu, "inputs", "back", 1, "<")
end