[WIP] Triggers

- Algo de neteja de codi
This commit is contained in:
2026-04-03 20:09:30 +02:00
parent de395abb06
commit 8b516a6a26
5 changed files with 33 additions and 57 deletions

View File

@@ -99,54 +99,12 @@ end
function opcions_input_end()
menu_opt = 0
-- menu_state = update_options_menu;
flow:finish()
end
function config_key(def_key, k)
local end_setup=false
local valid_key = true
-- if input_type==controller.input.kb then
-- if def_key.name=="up" then
-- keyUp=k
-- elseif def_key.name=="down" then
-- keyDown=k
-- elseif def_key.name=="left" then
-- keyLeft=k
-- elseif def_key.name=="right" then
-- keyRight=k
-- elseif def_key.name=="jump" then
-- keyJump=k
-- elseif def_key.name=="shoot" then
-- keyShoot=k
-- end_setup = true
-- else
-- valid_key = false
-- end
-- elseif input_type==controller.input.pad then
-- if def_key.name=="up" then
-- btnUp=k
-- elseif def_key.name=="down" then
-- btnDown=k
-- elseif def_key.name=="left" then
-- btnLeft=k
-- elseif def_key.name=="right" then
-- btnRight=k
-- elseif def_key.name=="jump" then
-- btnJump=k
-- elseif def_key.name=="shoot" then
-- btnShoot=k
-- elseif def_key.name=="next" then
-- btnCycle1=k
-- elseif def_key.name=="prev" then
-- btnCycle2=k
-- elseif def_key.name=="pause" then
-- btnPause=k
-- end_setup = true
-- else
-- valid_key = false
-- end
-- end
if (input_type==controller.input.kb and def_key.name=="shoot")
or (input_type==controller.input.pad and def_key.name=="pause") then