diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-12 23:42:00 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-12 23:42:00 +0200 |
commit | eb255e68706c5fcc61bf17a81427c34505c3d519 (patch) | |
tree | 74876819d3a01582f9557c5750263c44bf2db614 /src/keycode.h | |
parent | 72e4c8f5233608924ccd58d178593eb7e69bed17 (diff) | |
download | minetest-eb255e68706c5fcc61bf17a81427c34505c3d519.tar.gz minetest-eb255e68706c5fcc61bf17a81427c34505c3d519.tar.bz2 minetest-eb255e68706c5fcc61bf17a81427c34505c3d519.zip |
Clean up key names handling
Constify keycode and move the static array of localizable names from the
guiKeyChangeMenu header to the implementation file, changing its name.
Diffstat (limited to 'src/keycode.h')
-rw-r--r-- | src/keycode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keycode.h b/src/keycode.h index 300682b12..2681e7efa 100644 --- a/src/keycode.h +++ b/src/keycode.h @@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <string> irr::EKEY_CODE keyname_to_keycode(const char *name); -std::string keycode_to_keyname(s32 keycode); +const std::string &keycode_to_keyname(s32 keycode); // Key configuration getter irr::EKEY_CODE getKeySetting(const char *settingname); |