Switching pad modes and cheats when player is switching between controller and kb&m

This commit is contained in:
Sergeanur
2020-05-02 19:00:47 +03:00
parent d51bf48dcd
commit ba8aa38654
4 changed files with 127 additions and 32 deletions

View File

@ -528,9 +528,14 @@ void CGarage::Update()
CGarages::GivePlayerDetonator();
CStats::KgsOfExplosivesUsed += KGS_OF_EXPLOSIVES_IN_BOMB;
}
#ifdef DETECT_PAD_INPUT_SWITCH
int16 Mode = CPad::IsAffectedByController ? CPad::GetPad(0)->Mode : 0;
#else
int16 Mode = CPad::GetPad(0)->Mode;
#endif
switch (m_eGarageType) {
case GARAGE_BOMBSHOP1:
switch (CPad::GetPad(0)->Mode) {
switch (Mode) {
case 0:
case 1:
case 2:
@ -542,7 +547,7 @@ void CGarage::Update()
}
break;
case GARAGE_BOMBSHOP2:
switch (CPad::GetPad(0)->Mode) {
switch (Mode) {
case 0:
case 1:
case 2: