mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-06 11:40:19 -06:00
hid: implemented button prohibition (#104)
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include <res/images/common/general_window.dds.h>
|
||||
#include <res/images/common/select_fill.dds.h>
|
||||
#include <gpu/imgui/imgui_snapshot.h>
|
||||
#include <hid/hid.h>
|
||||
|
||||
constexpr double HEADER_CONTAINER_INTRO_MOTION_START = 0;
|
||||
constexpr double HEADER_CONTAINER_INTRO_MOTION_END = 15;
|
||||
@@ -815,6 +816,8 @@ void AchievementMenu::Open()
|
||||
|
||||
ResetSelection();
|
||||
Game_PlaySound("sys_actstg_pausewinopen");
|
||||
|
||||
hid::SetProhibitedButtons(XAMINPUT_GAMEPAD_START);
|
||||
}
|
||||
|
||||
void AchievementMenu::Close()
|
||||
@@ -823,6 +826,8 @@ void AchievementMenu::Close()
|
||||
{
|
||||
g_appearTime = ImGui::GetTime();
|
||||
g_isClosing = true;
|
||||
|
||||
hid::SetProhibitedButtons(0);
|
||||
}
|
||||
|
||||
ButtonGuide::Close();
|
||||
|
||||
Reference in New Issue
Block a user