File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55namespace Sonicteam ::SoX::Input
66{
7- static const uint32_t XENON_GAMEPAD_BACK = 2048 ;
87
98 enum KeyState
109 {
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments