X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fkeyboard.cpp;fp=source%2Finput%2Fkeyboard.cpp;h=0f4d4ab848c772efb084f14cd18953c6cb412e26;hb=5ccbbe9ba2daa4d5f0c047be022f6cfeec946598;hp=5b54ee4c0784f4210548b270e80e0942d0ad14d6;hpb=3874e3e275b30d12d213bd65798224a717627ba2;p=libs%2Fgui.git diff --git a/source/input/keyboard.cpp b/source/input/keyboard.cpp index 5b54ee4..0f4d4ab 100644 --- a/source/input/keyboard.cpp +++ b/source/input/keyboard.cpp @@ -8,7 +8,6 @@ #include #include #include -#include #include "keyboard.h" #include "keys.h" @@ -34,13 +33,13 @@ std::string Keyboard::get_button_name(unsigned btn) const #ifndef WIN32 const char *str = XKeysymToString(key_to_sys(btn)); if(!str) - return format("Key %d", btn); + return Device::get_button_name(btn); return str; #else char buf[128]; unsigned scan = MapVirtualKey(key_to_sys(btn), MAPVK_VK_TO_VSC); if(!GetKeyNameText(scan<<16, buf, sizeof(buf))) - return format("Key %d", btn); + return Device::get_button_name(btn); return buf; #endif }