- [NEW] Els botons de cicle avant i arrere de la vista de GPS en el pad, i la pausa en el pad ara es poden redefinir.

This commit is contained in:
2025-10-30 16:46:12 +01:00
parent 639fd6e34d
commit df277fb0e4
2 changed files with 29 additions and 5 deletions

View File

@@ -533,11 +533,35 @@ function update_redefine_pad_menu()
text("PULSA BOTÓ PER A DISPAR", 20, 24, 13) text("PULSA BOTÓ PER A DISPAR", 20, 24, 13)
local btn = pad.press(); local btn = pad.press();
if btn ~= -1 then if btn ~= -1 then
menu_count = 0 menu_count = 6
menu_state = update_options_menu;
btnShoot=btn btnShoot=btn
config.key("btnshoot", btnShoot) config.key("btnshoot", btnShoot)
end end
elseif menu_count==6 then
text("PULSA BOTÓ PER A GPS ARRERE", 14, 24, 13)
local btn = pad.press();
if btn ~= -1 then
menu_count = 7
btnCycle1=btn
config.key("btncycle1", btnCycle1)
end
elseif menu_count==7 then
text("PULSA BOTÓ PER A GPS AVANT", 14, 24, 13)
local btn = pad.press();
if btn ~= -1 then
menu_count = 8
btnCycle2=btn
config.key("btncycle2", btnCycle2)
end
elseif menu_count==8 then
text("PULSA BOTÓ PER A PAUSA", 22, 24, 13)
local btn = pad.press();
if btn ~= -1 then
menu_count = 0
menu_state = update_options_menu;
btnPause=btn
config.key("btnpause", btnPause)
end
end end
end end

View File

@@ -70,9 +70,9 @@ function mini.init()
btnRight = tonumber(config.key("btnright")) or pad.RIGHT btnRight = tonumber(config.key("btnright")) or pad.RIGHT
btnJump = tonumber(config.key("btnjump")) or pad.B btnJump = tonumber(config.key("btnjump")) or pad.B
btnShoot = tonumber(config.key("btnshoot")) or pad.A btnShoot = tonumber(config.key("btnshoot")) or pad.A
btnCycle1 = tonumber(config.key("btnCycle1")) or pad.RIGHTSHOULDER btnCycle1 = tonumber(config.key("btncycle1")) or pad.RIGHTSHOULDER
btnCycle2 = tonumber(config.key("btnCycle2")) or pad.LEFTSHOULDER btnCycle2 = tonumber(config.key("btncycle2")) or pad.LEFTSHOULDER
btnPause = tonumber(config.key("btnPause")) or pad.START btnPause = tonumber(config.key("btnpause")) or pad.START
--game_init() --game_init()
intro_init() intro_init()