mirror of
https://github.com/izzy2lost/WeeU.git
synced 2026-07-06 00:19:59 -07:00
Fixed key text not showing
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user