Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: arthurvalenca on June 19, 2020, 05:37:08 AM

Title: [Help] ::fe.signal ("Configure / Controls")
Post by: arthurvalenca on June 19, 2020, 05:37:08 AM
Hello everyone, I have a question, I can open the main menu with this code below.
However, I would like to know if there is any code that I can directly open the "control" settings without having to go through the main menu.
Can someone help me please.

Code: [Select]
        ::fe.signal("configure");



PS:
I found this code inside fe_config.cpp


Code: [Select]
void FeInputSelMenu::get_options( FeConfigContext &ctx )
{
ctx.set_style( FeConfigContext::EditList, "Configure / Controls" );
ctx.fe_settings.get_input_mappings( m_mappings );

std::vector < FeMapping >::iterator it;
for ( it=m_mappings.begin(); it != m_mappings.end(); ++it )
{
std::string value, orstr;
ctx.fe_settings.get_resource( "OR", orstr );
std::vector < std::string >::iterator iti;
for ( iti=(*it).input_list.begin(); iti != (*it).input_list.end(); ++iti )
{
if ( iti > (*it).input_list.begin() )
{
value += " ";
value += orstr;
value += " ";
}

value += (*iti);
}
Title: Re: [Help] ::fe.signal ("Configure / Controls")
Post by: zpaolo11x on June 19, 2020, 06:33:07 AM
As far as I know no, there is no way. A workaround would be to code something to directly edit the attract.cfg file...
Title: Re: [Help] ::fe.signal ("Configure / Controls")
Post by: arthurvalenca on June 19, 2020, 07:11:16 AM
As far as I know no, there is no way. A workaround would be to code something to directly edit the attract.cfg file...


could you give me an example?
Title: Re: [Help] ::fe.signal ("Configure / Controls")
Post by: jedione on June 19, 2020, 01:20:46 PM
You could do it with batch file..
To amend the lines as needed.
Title: Re: [Help] ::fe.signal ("Configure / Controls")
Post by: rand0m on June 20, 2020, 05:54:27 AM
This would be a nice addition, you should request this on github.