X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsupertux%2Fmenu%2Fkeyboard_menu.cpp;h=052ed3db24af5fccaeef13b01e21712237e289de;hb=e52fb1f5bdee944734dc31a67cdbb25130313ee1;hp=2b90ae8bd88a4c286e61054b7eeabee1d6750abc;hpb=fdd4409cae442e2ccf092da87f4b7c6e0a6d7382;p=supertux.git diff --git a/src/supertux/menu/keyboard_menu.cpp b/src/supertux/menu/keyboard_menu.cpp index 2b90ae8bd..052ed3db2 100644 --- a/src/supertux/menu/keyboard_menu.cpp +++ b/src/supertux/menu/keyboard_menu.cpp @@ -1,6 +1,6 @@ // SuperTux // Copyright (C) 2006 Matthias Braun , -// 2007 Ingo Ruhnke +// 2007 Ingo Ruhnke // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -43,7 +43,7 @@ KeyboardMenu::KeyboardMenu(InputManager* _controller) : add_toggle(Controller::CONTROLCOUNT, _("Jump with Up"), controller->keyboard_manager->jump_with_up_kbd); add_hl(); add_back(_("Back")); - update(); + refresh(); } KeyboardMenu::~KeyboardMenu() @@ -92,14 +92,12 @@ KeyboardMenu::menu_action(MenuItem* item) controller->keyboard_manager->wait_for_key = item->id; } else if( item->id == Controller::CONTROLCOUNT) { controller->keyboard_manager->jump_with_up_kbd = item->toggled; - } + } } void -KeyboardMenu::update() +KeyboardMenu::refresh() { - // update menu - auto& kbd_mgr = controller->keyboard_manager; get_item_by_id((int) Controller::UP).change_input(get_key_name(