mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-05-26 23:56:51 -04:00
Disable input to game when typing in console
This commit is contained in:
@@ -66,8 +66,11 @@ extern "C" {
|
||||
pad->err_no = 0;
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user