engine/commands/help/source/HelpKeyboardCommandMap.cpp
// Settings currently does nothing here.
Settings currently does nothing here.
Settings currently does nothing here .
void HelpKeyboardCommandMap::initialize_command_mapping(const Settings& settings)
{
  string esc_key;
  esc_key = NC_ESCAPE_KEY;
  command_mapping.clear();
  command_mapping = KeyboardCommandMappingMap{ { std::to_string('a'), HelpCommandKeys::INTRODUCTION_ROGUELIKES },
  { std::to_string('b'), HelpCommandKeys::SOTW_HISTORY },
  { std::to_string('c'), HelpCommandKeys::STRATEGY_BASICS },
  { std::to_string('d'), HelpCommandKeys::CASINO_GAMES },
  { std::to_string('e'), HelpCommandKeys::KEYBINDINGS },
  { std::to_string('z'), HelpCommandKeys::EXIT_HELP },
  { std::to_string('Z'), HelpCommandKeys::EXIT_HELP },
  { std::to_string(NC_ESCAPE_KEY), HelpCommandKeys::EXIT_HELP },
  { esc_key, HelpCommandKeys::EXIT_HELP } };
}
void HelpKeyboardCommandMap :: initialize_command_mapping ( const Settings & settings ) { string esc_key ; esc_key = NC_ESCAPE_KEY ; command_mapping . clear ( ) ; command_mapping = KeyboardCommandMappingMap { { std :: to_string ( ' ' ) , HelpCommandKeys :: INTRODUCTION_ROGUELIKES } , { std :: to_string ( ' ' ) , HelpCommandKeys :: SOTW_HISTORY } , { std :: to_string ( ' ' ) , HelpCommandKeys :: STRATEGY_BASICS } , { std :: to_string ( ' ' ) , HelpCommandKeys :: CASINO_GAMES } , { std :: to_string ( ' ' ) , HelpCommandKeys :: KEYBINDINGS } , { std :: to_string ( ' ' ) , HelpCommandKeys :: EXIT_HELP } , { std :: to_string ( ' ' ) , HelpCommandKeys :: EXIT_HELP } , { std :: to_string ( NC_ESCAPE_KEY ) , HelpCommandKeys :: EXIT_HELP } , { esc_key , HelpCommandKeys :: EXIT_HELP } } ; }
Settings currently does nothing here.
Settings currently does nothing here .