mirror of https://github.com/PCSX2/pcsx2.git
ImGuiManager: Fix double press to activate menu items
This commit is contained in:
parent
e027874468
commit
888f3d8499
|
@ -941,7 +941,7 @@ bool ImGuiManager::ProcessGenericInputEvent(GenericInputBinding key, float value
|
||||||
ImGuiKey_GamepadL2, // R2
|
ImGuiKey_GamepadL2, // R2
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!ImGui::GetCurrentContext() || !s_imgui_wants_keyboard.load(std::memory_order_acquire))
|
if (!ImGui::GetCurrentContext())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (static_cast<u32>(key) >= std::size(key_map) || key_map[static_cast<u32>(key)] == ImGuiKey_None)
|
if (static_cast<u32>(key) >= std::size(key_map) || key_map[static_cast<u32>(key)] == ImGuiKey_None)
|
||||||
|
@ -950,7 +950,7 @@ bool ImGuiManager::ProcessGenericInputEvent(GenericInputBinding key, float value
|
||||||
MTGS::RunOnGSThread(
|
MTGS::RunOnGSThread(
|
||||||
[key = key_map[static_cast<u32>(key)], value]() { ImGui::GetIO().AddKeyAnalogEvent(key, (value > 0.0f), value); });
|
[key = key_map[static_cast<u32>(key)], value]() { ImGui::GetIO().AddKeyAnalogEvent(key, (value > 0.0f), value); });
|
||||||
|
|
||||||
return true;
|
return s_imgui_wants_keyboard.load(std::memory_order_acquire);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImGuiManager::CreateSoftwareCursorTextures()
|
void ImGuiManager::CreateSoftwareCursorTextures()
|
||||||
|
|
Loading…
Reference in New Issue