Attract-Mode Support Forum
Attract-Mode Support => General => Topic started 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.
::fe.signal("configure");
PS:
I found this code inside fe_config.cpp
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);
}
-
As far as I know no, there is no way. A workaround would be to code something to directly edit the attract.cfg file...
-
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?
-
You could do it with batch file..
To amend the lines as needed.
-
This would be a nice addition, you should request this on github.