Hello All, i'm using a module that I found here in the group "AM Controls Module v1.0", I'm modifying it to work as I want, an example when I'm in the layout and press "Enter - select" it opens the menu on the left side, scroll until down in "Launch" I press "Enter" again it simply closes the menu and does not start the game, could someone help me with this code, what I would like to do and when selecting the game the menu appears and after pressing " Enter "the game starts from the menu and not directly from the layout.
function control_signals( signal ){
if (signal == "select"){
if (menu.visible) hide_menu();
else show_menu();
return true;
}
else if ( signal == "back" ){
if (manager.enabled) hide_menu();
else if (menu.visible) menu_hide(); else return
return true;
}
return false;
}