From 4fd08efa6d27d94c1247df312e01e304f231e83f Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Wed, 29 Jan 2025 02:38:41 +0000 Subject: [PATCH] message_window: fix input and button guide inconsistencies --- UnleashedRecomp/ui/message_window.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/UnleashedRecomp/ui/message_window.cpp b/UnleashedRecomp/ui/message_window.cpp index d704250..0aa8b6a 100644 --- a/UnleashedRecomp/ui/message_window.cpp +++ b/UnleashedRecomp/ui/message_window.cpp @@ -147,9 +147,8 @@ public: } } } -}; - -static SDLEventListenerForMessageWindow g_eventListener; +} +g_sdlEventListenerForMessageWindow; bool DrawContainer(float appearTime, ImVec2 centre, ImVec2 max, bool isForeground = true) { @@ -382,12 +381,15 @@ void MessageWindow::Draw() } if (scrollUp || scrollDown) + { Game_PlaySound("sys_actstg_pausecursor"); + g_joypadAxis = {}; + } g_upWasHeld = upIsHeld; g_downWasHeld = downIsHeld; - if (isController) + if (isController || (isKeyboard && App::s_isInit)) { std::array buttons = { @@ -397,7 +399,7 @@ void MessageWindow::Draw() ButtonGuide::Open(buttons); } - else if (!App::s_isInit) // Only display keyboard prompt during installer. + else // Only display keyboard prompt during installer. { ButtonGuide::Open(Button(Localise("Common_Select"), EButtonIcon::Enter)); }