mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-31 16:31:30 -06:00
hid: implemented button prohibition (#104)
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <gpu/imgui/imgui_common.h>
|
||||
#include <gpu/video.h>
|
||||
#include <gpu/imgui/imgui_snapshot.h>
|
||||
#include <hid/hid.h>
|
||||
#include <kernel/heap.h>
|
||||
#include <kernel/memory.h>
|
||||
#include <locale/locale.h>
|
||||
@@ -1234,6 +1235,8 @@ void OptionsMenu::Open(bool isPause, SWA::EMenuType pauseMenuType)
|
||||
|
||||
ButtonGuide::Open(buttons);
|
||||
ButtonGuide::SetSideMargins(250);
|
||||
|
||||
hid::SetProhibitedButtons(XAMINPUT_GAMEPAD_START);
|
||||
}
|
||||
|
||||
void OptionsMenu::Close()
|
||||
@@ -1246,6 +1249,8 @@ void OptionsMenu::Close()
|
||||
|
||||
ButtonGuide::Close();
|
||||
Config::Save();
|
||||
|
||||
hid::SetProhibitedButtons(0);
|
||||
}
|
||||
|
||||
// Skip Miles Electric animation at main menu.
|
||||
|
||||
Reference in New Issue
Block a user