Skip to content

Commit de8fbf5

Browse files
committed
Correction
1 parent af75753 commit de8fbf5

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

MarathonRecomp/api/Sonicteam/SoX/Input/Manager.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Sonicteam::SoX::Input
66
{
7-
static const uint32_t XENON_GAMEPAD_BACK = 2048;
87

98
enum KeyState
109
{

MarathonRecomp/patches/player_patches.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,11 @@ PPC_FUNC(sub_82195500)
137137
auto pGameImp = App::s_pApp->m_pDoc->GetDocMode<Sonicteam::GameMode>()->m_pGameImp;
138138
auto pPlayer = (Sonicteam::Player::Object*)(base + ctx.r3.u32);
139139

140-
141-
if (pPlayer->m_SetupModuleIndexPost != -2 && pPlayer->isPlayer)
140+
if (pPlayer->m_SetupModuleIndexPost != -2 && pPlayer->m_IsPlayer)
142141
{
143142
auto PIndex = pGameImp->PlayerActorIDToIndex(pPlayer->m_ActorID);
144143
auto PManager = pDoc->m_vspInputManager[pDoc->m_PlayerControllerID[PIndex].get()].get();
145-
if ((PManager->m_Gamepad.wLastButtons.get() & Sonicteam::SoX::Input::XENON_GAMEPAD_BACK) != 0)
144+
if ((PManager->m_PadState.LastButtons.get() & Sonicteam::SoX::Input::KeyState_Select) != 0)
146145
{
147146
pPlayer->m_SetupModuleIndexPost = 2;
148147
}

0 commit comments

Comments
 (0)