aboutsummaryrefslogtreecommitdiff
path: root/src/keycode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/keycode.cpp')
-rw-r--r--src/keycode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keycode.cpp b/src/keycode.cpp
index f014914d0..323d12e74 100644
--- a/src/keycode.cpp
+++ b/src/keycode.cpp
@@ -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];
}