mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 06:13:45 -07:00
Disable input to game when typing in console
This commit is contained in:
parent
1bebf6ad91
commit
d5f8dbfeea
1 changed files with 4 additions and 1 deletions
|
@ -69,6 +69,9 @@ extern "C" {
|
|||
|
||||
if (SohImGui::controller->Opened) return;
|
||||
|
||||
ImGuiIO io = ImGui::GetIO();
|
||||
if (io.WantCaptureKeyboard) return;
|
||||
|
||||
Ship::GlobalCtx2::GetInstance()->GetWindow()->GetControlDeck()->WriteToPad(pad);
|
||||
Ship::ExecuteHooks<Ship::ControllerRead>(pad);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue