mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-22 07:52:18 +00:00
message_window: disable mouse checks in-game
This commit is contained in:
parent
4fd08efa6d
commit
cb57e337b8
1 changed files with 4 additions and 1 deletions
|
|
@ -304,6 +304,9 @@ void MessageWindow::Draw()
|
||||||
// Handle controller input when the game is booted.
|
// Handle controller input when the game is booted.
|
||||||
if (App::s_isInit)
|
if (App::s_isInit)
|
||||||
{
|
{
|
||||||
|
// Always assume keyboard to prevent mouse from blocking control in-game.
|
||||||
|
isKeyboard = true;
|
||||||
|
|
||||||
if (auto pInputState = SWA::CInputState::GetInstance())
|
if (auto pInputState = SWA::CInputState::GetInstance())
|
||||||
{
|
{
|
||||||
auto& rPadState = pInputState->GetPadState();
|
auto& rPadState = pInputState->GetPadState();
|
||||||
|
|
@ -383,7 +386,7 @@ void MessageWindow::Draw()
|
||||||
if (scrollUp || scrollDown)
|
if (scrollUp || scrollDown)
|
||||||
{
|
{
|
||||||
Game_PlaySound("sys_actstg_pausecursor");
|
Game_PlaySound("sys_actstg_pausecursor");
|
||||||
g_joypadAxis = {};
|
g_joypadAxis.y = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_upWasHeld = upIsHeld;
|
g_upWasHeld = upIsHeld;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue