mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
options_menu: fix being unable to press A at least once after opening the menu
This commit is contained in:
parent
16484a2343
commit
ab6f29ebd4
1 changed files with 7 additions and 5 deletions
|
|
@ -597,10 +597,6 @@ static void DrawConfigOption(int32_t rowIndex, float yOffset, ConfigDef<T>* conf
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// We've entered the menu now, no need to check this.
|
|
||||||
if (padState.IsReleased(SWA::eKeyState_A))
|
|
||||||
g_isEnterKeyBuffered = false;
|
|
||||||
|
|
||||||
bool fadedOut = g_lockedOnOption && g_selectedItem != config;
|
bool fadedOut = g_lockedOnOption && g_selectedItem != config;
|
||||||
float alpha = fadedOut ? 0.5f : 1.0f;
|
float alpha = fadedOut ? 0.5f : 1.0f;
|
||||||
|
|
||||||
|
|
@ -1019,9 +1015,15 @@ static void DrawInfoPanel()
|
||||||
|
|
||||||
void OptionsMenu::Draw()
|
void OptionsMenu::Draw()
|
||||||
{
|
{
|
||||||
if (!s_isVisible || SWA::CInputState::GetInstance()->GetPadState().IsDown(SWA::eKeyState_Y))
|
auto pInputState = SWA::CInputState::GetInstance();
|
||||||
|
|
||||||
|
if (!s_isVisible || pInputState->GetPadState().IsDown(SWA::eKeyState_Y))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// We've entered the menu now, no need to check this.
|
||||||
|
if (pInputState->GetPadState().IsReleased(SWA::eKeyState_A))
|
||||||
|
g_isEnterKeyBuffered = false;
|
||||||
|
|
||||||
g_callbackDataIndex = 0;
|
g_callbackDataIndex = 0;
|
||||||
|
|
||||||
auto& res = ImGui::GetIO().DisplaySize;
|
auto& res = ImGui::GetIO().DisplaySize;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue