Author Topic: [Help] ::fe.signal ("Configure / Controls")  (Read 2087 times)

arthurvalenca

  • Sr. Member
  • ****
  • Posts: 125
    • View Profile
[Help] ::fe.signal ("Configure / Controls")
« 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);
}
« Last Edit: June 19, 2020, 09:21:16 AM by arthurvalenca »

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1235
    • View Profile
    • My deviantart page
Re: [Help] ::fe.signal ("Configure / Controls")
« Reply #1 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...

arthurvalenca

  • Sr. Member
  • ****
  • Posts: 125
    • View Profile
Re: [Help] ::fe.signal ("Configure / Controls")
« Reply #2 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?

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: [Help] ::fe.signal ("Configure / Controls")
« Reply #3 on: June 19, 2020, 01:20:46 PM »
You could do it with batch file..
To amend the lines as needed.
help a friend....

rand0m

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
Re: [Help] ::fe.signal ("Configure / Controls")
« Reply #4 on: June 20, 2020, 05:54:27 AM »
This would be a nice addition, you should request this on github.