mirror of
https://github.com/minetest/minetest.git
synced 2025-07-01 23:50:22 +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:
@ -206,7 +206,7 @@ static const char *KeyNames[] =
|
||||
"-", "-", "-", "-", "-", "-", "-", "-", "Attn", "CrSel", "ExSel",
|
||||
"Erase OEF", "Play", "Zoom", "PA1", "OEM Clear", "-" };
|
||||
|
||||
std::string keycode_to_keyname(s32 keycode)
|
||||
const std::string &keycode_to_keyname(s32 keycode)
|
||||
{
|
||||
return KeyNames[keycode];
|
||||
}
|
||||
|
Reference in New Issue
Block a user