mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user