keymap[SDLK_PAGEDOWN] = Controller::PEEK_RIGHT;
keymap[SDLK_HOME] = Controller::PEEK_UP;
keymap[SDLK_END] = Controller::PEEK_DOWN;
- keymap[SDLK_TAB] = Controller::CHEAT_MENU;
+ keymap[SDLK_F1] = Controller::CHEAT_MENU;
}
void
add_controlfield(Controller::PEEK_RIGHT, _("Peek Right"));
add_controlfield(Controller::PEEK_UP, _("Peek Up"));
add_controlfield(Controller::PEEK_DOWN, _("Peek Down"));
-
+ if (g_config->developer_mode || g_config->console_enabled) {
+ add_controlfield(Controller::CONSOLE, _("Console"));
+ }
+ if (g_config->developer_mode) {
+ add_controlfield(Controller::CHEAT_MENU, _("Cheat Menu"));
+ }
add_toggle(MNID_JUMP_WITH_UP, _("Jump with Up"), g_config->joystick_config.jump_with_up_joy);
}
else
refresh_menu_item(Controller::PEEK_RIGHT);
refresh_menu_item(Controller::PEEK_UP);
refresh_menu_item(Controller::PEEK_DOWN);
+ refresh_menu_item(Controller::CHEAT_MENU);
}
}
add_controlfield(Controller::PEEK_RIGHT, _("Peek Right"));
add_controlfield(Controller::PEEK_UP, _("Peek Up"));
add_controlfield(Controller::PEEK_DOWN, _("Peek Down"));
- if (g_config->console_enabled) {
+ if (g_config->developer_mode || g_config->console_enabled) {
add_controlfield(Controller::CONSOLE, _("Console"));
}
+ if (g_config->developer_mode) {
+ add_controlfield(Controller::CHEAT_MENU, _("Cheat Menu"));
+ }
add_toggle(Controller::CONTROLCOUNT, _("Jump with Up"), g_config->keyboard_config.jump_with_up_kbd);
add_hl();
add_back(_("Back"));
case SDLK_LGUI:
return _("Left Command");
default:
- return SDL_GetKeyName((SDL_Keycode) key);
+ return SDL_GetKeyName(static_cast<SDL_Keycode>(key));
}
}
.change_input(get_key_name(kbd_cfg.reversemap_key(Controller::PEEK_UP)));
get_item_by_id((int) Controller::PEEK_DOWN)
.change_input(get_key_name(kbd_cfg.reversemap_key(Controller::PEEK_DOWN)));
+ get_item_by_id((int) Controller::CHEAT_MENU)
+ .change_input(get_key_name(kbd_cfg.reversemap_key(Controller::CHEAT_MENU)));
if (g_config->console_enabled)
{