From eb255e68706c5fcc61bf17a81427c34505c3d519 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 12 Aug 2011 23:42:00 +0200 Subject: 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. --- src/keycode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/keycode.h') 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 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); -- cgit v1.2.3