From cb57e337b87c2adf70d0c623cbb2604621e11184 Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Wed, 29 Jan 2025 06:48:52 +0000 Subject: [PATCH] message_window: disable mouse checks in-game --- UnleashedRecomp/ui/message_window.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/UnleashedRecomp/ui/message_window.cpp b/UnleashedRecomp/ui/message_window.cpp index 0aa8b6a..1b0dfb0 100644 --- a/UnleashedRecomp/ui/message_window.cpp +++ b/UnleashedRecomp/ui/message_window.cpp @@ -304,6 +304,9 @@ void MessageWindow::Draw() // Handle controller input when the game is booted. if (App::s_isInit) { + // Always assume keyboard to prevent mouse from blocking control in-game. + isKeyboard = true; + if (auto pInputState = SWA::CInputState::GetInstance()) { auto& rPadState = pInputState->GetPadState(); @@ -383,7 +386,7 @@ void MessageWindow::Draw() if (scrollUp || scrollDown) { Game_PlaySound("sys_actstg_pausecursor"); - g_joypadAxis = {}; + g_joypadAxis.y = 0; } g_upWasHeld = upIsHeld;