Disable input to game when typing in console

This commit is contained in:
David Chavez 2022-08-11 17:16:36 +02:00
parent 1bebf6ad91
commit d5f8dbfeea

View File

@ -69,6 +69,9 @@ extern "C" {
if (SohImGui::controller->Opened) return; if (SohImGui::controller->Opened) return;
ImGuiIO io = ImGui::GetIO();
if (io.WantCaptureKeyboard) return;
Ship::GlobalCtx2::GetInstance()->GetWindow()->GetControlDeck()->WriteToPad(pad); Ship::GlobalCtx2::GetInstance()->GetWindow()->GetControlDeck()->WriteToPad(pad);
Ship::ExecuteHooks<Ship::ControllerRead>(pad); Ship::ExecuteHooks<Ship::ControllerRead>(pad);
} }