- Now Up and Jump can be defined as different keys/buttons.
This commit is contained in:
@@ -436,6 +436,14 @@ function update_menu()
|
||||
setconf("keyright", keyRight)
|
||||
end
|
||||
elseif menu_count==4 then
|
||||
text("PULSA TECLA PER A BOTAR", 20, 24, 13)
|
||||
local key = btnp();
|
||||
if key ~= 0 and key~=KEY_ESCAPE then
|
||||
menu_count = 5
|
||||
keyJump=key
|
||||
setconf("keyjump", keyJump)
|
||||
end
|
||||
elseif menu_count==5 then
|
||||
text("PULSA TECLA PER A DISPAR", 18, 24, 13)
|
||||
local key = btnp();
|
||||
if key ~= 0 and key~=KEY_ESCAPE then
|
||||
@@ -483,6 +491,14 @@ function update_menu()
|
||||
setconf("btnright", btnRight)
|
||||
end
|
||||
elseif menu_count==4 then
|
||||
text("PULSA BOTÓ PER A BOTAR", 22, 24, 13)
|
||||
local btn = padp();
|
||||
if btn ~= -1 then
|
||||
menu_count = 5
|
||||
btnJump=btn
|
||||
setconf("btnjump", btnJump)
|
||||
end
|
||||
elseif menu_count==5 then
|
||||
text("PULSA BOTÓ PER A DISPAR", 20, 24, 13)
|
||||
local btn = padp();
|
||||
if btn ~= -1 then
|
||||
|
||||
Reference in New Issue
Block a user