Qt: Allow toggling fullscreen when VM is paused

This commit is contained in:
Stenzek
2024-01-20 20:24:28 +10:00
parent ecd8d97f72
commit 429cb4f351
4 changed files with 28 additions and 7 deletions

View File

@ -892,6 +892,11 @@ bool ImGuiManager::WantsTextInput()
return s_imgui_wants_keyboard.load(std::memory_order_acquire);
}
bool ImGuiManager::WantsMouseInput()
{
return s_imgui_wants_mouse.load(std::memory_order_acquire);
}
void ImGuiManager::AddTextInput(std::string str)
{
if (!ImGui::GetCurrentContext())

View File

@ -69,6 +69,9 @@ ImFont* GetLargeFont();
/// Returns true if imgui wants to intercept text input.
bool WantsTextInput();
/// Returns true if imgui wants to intercept mouse input.
bool WantsMouseInput();
/// Called on the UI or CPU thread in response to a key press. String is UTF-8.
void AddTextInput(std::string str);