mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-29 04:42:18 -05:00
Disable input to game when typing in console
This commit is contained in:
parent
1bebf6ad91
commit
d5f8dbfeea
@ -67,7 +67,10 @@ extern "C" {
|
||||
pad->gyro_x = 0;
|
||||
pad->gyro_y = 0;
|
||||
|
||||
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::ExecuteHooks<Ship::ControllerRead>(pad);
|
||||
|
Loading…
Reference in New Issue
Block a user