From c84f0e6059461758b86563c65e27387416e804a1 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sat, 31 Oct 2015 15:19:34 +0100 Subject: [PATCH] Show the id of unknown mapped keys in the UI. --- Common/KeyMap.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Common/KeyMap.cpp b/Common/KeyMap.cpp index 2f38a375a9..5a08f7c03f 100644 --- a/Common/KeyMap.cpp +++ b/Common/KeyMap.cpp @@ -693,8 +693,7 @@ static std::string FindName(int key, const KeyMap_IntStrPair list[], size_t size for (size_t i = 0; i < size; i++) if (list[i].key == key) return list[i].name; - - return unknown_key_name; + return StringFromFormat("%02x?", key); } std::string GetKeyName(int keyCode) {