Fixed key text not showing

This commit is contained in:
SSimco
2024-09-21 21:56:55 +03:00
parent 25ea6ddf47
commit bc2b573053
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ void unregisterKeyCodeToStringCallback()
std::string keyCodeToString(uint32 key)
{
if (!s_key_code_to_string)
return "";
return fmt::format("key {}", key);
return s_key_code_to_string(key);
}
+1 -1
View File
@@ -82,7 +82,6 @@ void CemuApp::DeterminePaths(std::set<fs::path>& failedWriteAccess) // for Windo
{
std::error_code ec;
bool isPortable = false;
GuiSystem::registerKeyCodeToStringCallback(rawKeyCodeToString);
fs::path user_data_path, config_path, cache_path, data_path;
auto standardPaths = wxStandardPaths::Get();
fs::path exePath(wxHelper::MakeFSPath(standardPaths.GetExecutablePath()));
@@ -238,6 +237,7 @@ void CemuApp::InitializeExistingMLCOrFail(fs::path mlc)
bool CemuApp::OnInit()
{
GuiSystem::registerKeyCodeToStringCallback(rawKeyCodeToString);
#if __WXGTK__
GTKSuppressDiagnostics(G_LOG_LEVEL_MASK & ~G_LOG_FLAG_FATAL);
#endif