parent
16f3ea023b
commit
5e39c836ec
2 changed files with 4 additions and 4 deletions
1
sonic-radiance.love/datas/keys.lua
Normal file
1
sonic-radiance.love/datas/keys.lua
Normal file
|
@ -0,0 +1 @@
|
||||||
|
return {"up", "down", "left", "right", "A", "B", "C", "start", "select"}
|
|
@ -64,10 +64,9 @@ function OptionsMenu:addPlayerMenus()
|
||||||
local menu = "player" .. i
|
local menu = "player" .. i
|
||||||
self:addMenu(menu)
|
self:addMenu(menu)
|
||||||
Widgets.PlayerSubMenu(self, "inputs", i)
|
Widgets.PlayerSubMenu(self, "inputs", i)
|
||||||
for k,w in pairs(v.keys) do
|
local keyList = require "datas.keys"
|
||||||
-- FIXME: make sure that you can use the order you want for the keys list
|
for j, key in ipairs(keyList) do
|
||||||
-- instead of a random one
|
Widgets.Key(self, i, key)
|
||||||
Widgets.Key(self, i, k)
|
|
||||||
end
|
end
|
||||||
Widgets.SubMenu(self, menu, "inputs", "back", 1, "<")
|
Widgets.SubMenu(self, menu, "inputs", "back", 1, "<")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue