X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2FguiKeyChangeMenu.h;h=19a07620d242c2804418b3c488dcddf2d062139f;hb=3e30731c1ac313b504ff15eb7f40ce6a387d3da2;hp=beb4f0b6fcb52a04b7272a56b44ab3e7f030dc86;hpb=5194505407884f6375311f0ab4c5f8783646cb91;p=minetest.git diff --git a/src/guiKeyChangeMenu.h b/src/guiKeyChangeMenu.h index beb4f0b6f..19a07620d 100644 --- a/src/guiKeyChangeMenu.h +++ b/src/guiKeyChangeMenu.h @@ -1,8 +1,8 @@ /* - Minetest-c55 - Copyright (C) 2010-11 celeron55, Perttu Ahola - Copyright (C) 2011 Ciaran Gultnieks - Copyright (C) 2011 teddydestodes + Minetest + Copyright (C) 2010-2013 celeron55, Perttu Ahola + Copyright (C) 2013 Ciaran Gultnieks + Copyright (C) 2013 teddydestodes This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -30,13 +30,13 @@ #include #include -typedef struct { +struct key_setting { int id; - wchar_t *button_name; + const wchar_t *button_name; KeyPress key; std::string setting_name; gui::IGUIButton *button; -} key_setting; +}; class GUIKeyChangeMenu: public GUIModalMenu @@ -64,7 +64,7 @@ class GUIKeyChangeMenu: public GUIModalMenu bool resetMenu(); - void add_key(int id, std::string setting_name, std::string button_name); + void add_key(int id, const wchar_t *button_name, const std::string &setting_name); bool shift_down;