If you press a button can it repeat the command until released.
For Example
Code: Select all
button_2_6=button_add("BGreen.png", "BRed.png", 560, 120, 100, 100, function()
xpl_command("sim/general/up")
end)
text_2_6 = txt_add("Up", "font:arimo_regular.ttf; size:15; halign:center; color: white; ", 560, 180, 100, 100)