mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 14:10:01 +00:00
Small CPad fixes
This commit is contained in:
parent
d9c96a76fb
commit
d84033a710
|
@ -1355,7 +1355,7 @@ bool CControllerConfigManager::GetIsKeyboardKeyJustDown(RsKeyCodes keycode)
|
||||||
return true;
|
return true;
|
||||||
break;
|
break;
|
||||||
case rsENTER:
|
case rsENTER:
|
||||||
if (CPad::GetPad(PAD1)->GetEnterJustDown())
|
if (CPad::GetPad(PAD1)->GetReturnJustDown())
|
||||||
return true;
|
return true;
|
||||||
break;
|
break;
|
||||||
case rsLSHIFT:
|
case rsLSHIFT:
|
||||||
|
|
|
@ -411,7 +411,7 @@ CCutsceneMgr::Update(void)
|
||||||
if (CPad::GetPad(0)->GetCrossJustDown()
|
if (CPad::GetPad(0)->GetCrossJustDown()
|
||||||
|| (CGame::playingIntro && CPad::GetPad(0)->GetStartJustDown())
|
|| (CGame::playingIntro && CPad::GetPad(0)->GetStartJustDown())
|
||||||
|| CPad::GetPad(0)->GetLeftMouseJustDown()
|
|| CPad::GetPad(0)->GetLeftMouseJustDown()
|
||||||
|| CPad::GetPad(0)->GetPadEnterJustDown() || CPad::GetPad(0)->GetEnterJustDown() // NOTE: In original code it's a single CPad method
|
|| CPad::GetPad(0)->GetEnterJustDown()
|
||||||
|| CPad::GetPad(0)->GetCharJustDown(VK_SPACE))
|
|| CPad::GetPad(0)->GetCharJustDown(VK_SPACE))
|
||||||
FinishCutscene();
|
FinishCutscene();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1855,7 +1855,7 @@ char *CPad::EditString(char *pStr, int32 nSize)
|
||||||
}
|
}
|
||||||
|
|
||||||
// extenter/up/down
|
// extenter/up/down
|
||||||
if ( GetPad(0)->GetEnterJustDown() || GetPad(0)->GetUpJustDown() || GetPad(0)->GetDownJustDown() )
|
if ( GetPad(0)->GetReturnJustDown() || GetPad(0)->GetUpJustDown() || GetPad(0)->GetDownJustDown() )
|
||||||
return nil;
|
return nil;
|
||||||
|
|
||||||
return pStr;
|
return pStr;
|
||||||
|
@ -1976,7 +1976,7 @@ int32 *CPad::EditCodesForControls(int32 *pRsKeys, int32 nSize)
|
||||||
if ( GetPad(0)->GetCapsLockJustDown() )
|
if ( GetPad(0)->GetCapsLockJustDown() )
|
||||||
*pRsKeys = rsCAPSLK;
|
*pRsKeys = rsCAPSLK;
|
||||||
|
|
||||||
if ( GetPad(0)->GetEnterJustDown() )
|
if ( GetPad(0)->GetReturnJustDown() )
|
||||||
*pRsKeys = rsENTER;
|
*pRsKeys = rsENTER;
|
||||||
|
|
||||||
if ( GetPad(0)->GetLeftShiftJustDown() )
|
if ( GetPad(0)->GetLeftShiftJustDown() )
|
||||||
|
|
|
@ -299,7 +299,7 @@ public:
|
||||||
bool GetTimesJustDown() { return !!(NewKeyState.MUL && !OldKeyState.MUL); }
|
bool GetTimesJustDown() { return !!(NewKeyState.MUL && !OldKeyState.MUL); }
|
||||||
bool GetMinusJustDown() { return !!(NewKeyState.SUB && !OldKeyState.SUB); }
|
bool GetMinusJustDown() { return !!(NewKeyState.SUB && !OldKeyState.SUB); }
|
||||||
bool GetPlusJustDown() { return !!(NewKeyState.ADD && !OldKeyState.ADD); }
|
bool GetPlusJustDown() { return !!(NewKeyState.ADD && !OldKeyState.ADD); }
|
||||||
bool GetPadEnterJustDown() { return !!(NewKeyState.ENTER && !OldKeyState.ENTER); } // GetEnterJustDown
|
bool GetPadEnterJustDown() { return !!(NewKeyState.ENTER && !OldKeyState.ENTER); }
|
||||||
bool GetPadDelJustDown() { return !!(NewKeyState.DECIMAL && !OldKeyState.DECIMAL); }
|
bool GetPadDelJustDown() { return !!(NewKeyState.DECIMAL && !OldKeyState.DECIMAL); }
|
||||||
bool GetPad1JustDown() { return !!(NewKeyState.NUM1 && !OldKeyState.NUM1); }
|
bool GetPad1JustDown() { return !!(NewKeyState.NUM1 && !OldKeyState.NUM1); }
|
||||||
bool GetPad2JustDown() { return !!(NewKeyState.NUM2 && !OldKeyState.NUM2); }
|
bool GetPad2JustDown() { return !!(NewKeyState.NUM2 && !OldKeyState.NUM2); }
|
||||||
|
@ -314,7 +314,7 @@ public:
|
||||||
bool GetBackspaceJustDown() { return !!(NewKeyState.BACKSP && !OldKeyState.BACKSP); }
|
bool GetBackspaceJustDown() { return !!(NewKeyState.BACKSP && !OldKeyState.BACKSP); }
|
||||||
bool GetTabJustDown() { return !!(NewKeyState.TAB && !OldKeyState.TAB); }
|
bool GetTabJustDown() { return !!(NewKeyState.TAB && !OldKeyState.TAB); }
|
||||||
bool GetCapsLockJustDown() { return !!(NewKeyState.CAPSLOCK && !OldKeyState.CAPSLOCK); }
|
bool GetCapsLockJustDown() { return !!(NewKeyState.CAPSLOCK && !OldKeyState.CAPSLOCK); }
|
||||||
bool GetEnterJustDown() { return !!(NewKeyState.EXTENTER && !OldKeyState.EXTENTER); }
|
bool GetReturnJustDown() { return !!(NewKeyState.EXTENTER && !OldKeyState.EXTENTER); }
|
||||||
bool GetLeftShiftJustDown() { return !!(NewKeyState.LSHIFT && !OldKeyState.LSHIFT); }
|
bool GetLeftShiftJustDown() { return !!(NewKeyState.LSHIFT && !OldKeyState.LSHIFT); }
|
||||||
bool GetShiftJustDown() { return !!(NewKeyState.SHIFT && !OldKeyState.SHIFT); }
|
bool GetShiftJustDown() { return !!(NewKeyState.SHIFT && !OldKeyState.SHIFT); }
|
||||||
bool GetRightShiftJustDown() { return !!(NewKeyState.RSHIFT && !OldKeyState.RSHIFT); }
|
bool GetRightShiftJustDown() { return !!(NewKeyState.RSHIFT && !OldKeyState.RSHIFT); }
|
||||||
|
@ -325,6 +325,8 @@ public:
|
||||||
bool GetLeftWinJustDown() { return !!(NewKeyState.LWIN && !OldKeyState.LWIN); }
|
bool GetLeftWinJustDown() { return !!(NewKeyState.LWIN && !OldKeyState.LWIN); }
|
||||||
bool GetRightWinJustDown() { return !!(NewKeyState.RWIN && !OldKeyState.RWIN); }
|
bool GetRightWinJustDown() { return !!(NewKeyState.RWIN && !OldKeyState.RWIN); }
|
||||||
bool GetAppsJustDown() { return !!(NewKeyState.APPS && !OldKeyState.APPS); }
|
bool GetAppsJustDown() { return !!(NewKeyState.APPS && !OldKeyState.APPS); }
|
||||||
|
bool GetEnterJustDown() { return GetPadEnterJustDown() || GetReturnJustDown(); }
|
||||||
|
bool GetAltJustDown() { return GetLeftAltJustDown() || GetRightAltJustDown(); }
|
||||||
|
|
||||||
bool GetChar(int32 c) { return NewKeyState.VK_KEYS[c]; }
|
bool GetChar(int32 c) { return NewKeyState.VK_KEYS[c]; }
|
||||||
bool GetF(int32 n) { return NewKeyState.F[n]; }
|
bool GetF(int32 n) { return NewKeyState.F[n]; }
|
||||||
|
|
|
@ -1969,11 +1969,11 @@ _WinMain(HINSTANCE instance,
|
||||||
++gGameState;
|
++gGameState;
|
||||||
else if ( CPad::GetPad(0)->GetLeftMouseJustDown() )
|
else if ( CPad::GetPad(0)->GetLeftMouseJustDown() )
|
||||||
++gGameState;
|
++gGameState;
|
||||||
else if ( CPad::GetPad(0)->GetPadEnterJustDown() || CPad::GetPad(0)->GetEnterJustDown() )
|
else if ( CPad::GetPad(0)->GetEnterJustDown() )
|
||||||
++gGameState;
|
++gGameState;
|
||||||
else if ( CPad::GetPad(0)->GetCharJustDown(' ') )
|
else if ( CPad::GetPad(0)->GetCharJustDown(VK_SPACE) )
|
||||||
++gGameState;
|
++gGameState;
|
||||||
else if ( CPad::GetPad(0)->GetLeftAltJustDown() || CPad::GetPad(0)->GetRightAltJustDown() )
|
else if ( CPad::GetPad(0)->GetAltJustDown() )
|
||||||
++gGameState;
|
++gGameState;
|
||||||
else if ( CPad::GetPad(0)->GetTabJustDown() )
|
else if ( CPad::GetPad(0)->GetTabJustDown() )
|
||||||
++gGameState;
|
++gGameState;
|
||||||
|
@ -2005,11 +2005,11 @@ _WinMain(HINSTANCE instance,
|
||||||
++gGameState;
|
++gGameState;
|
||||||
else if ( CPad::GetPad(0)->GetLeftMouseJustDown() )
|
else if ( CPad::GetPad(0)->GetLeftMouseJustDown() )
|
||||||
++gGameState;
|
++gGameState;
|
||||||
else if ( CPad::GetPad(0)->GetPadEnterJustDown() || CPad::GetPad(0)->GetEnterJustDown() )
|
else if ( CPad::GetPad(0)->GetEnterJustDown() )
|
||||||
++gGameState;
|
++gGameState;
|
||||||
else if ( CPad::GetPad(0)->GetCharJustDown(' ') )
|
else if ( CPad::GetPad(0)->GetCharJustDown(VK_SPACE) )
|
||||||
++gGameState;
|
++gGameState;
|
||||||
else if ( CPad::GetPad(0)->GetLeftAltJustDown() || CPad::GetPad(0)->GetRightAltJustDown() )
|
else if ( CPad::GetPad(0)->GetAltJustDown() )
|
||||||
++gGameState;
|
++gGameState;
|
||||||
else if ( CPad::GetPad(0)->GetTabJustDown() )
|
else if ( CPad::GetPad(0)->GetTabJustDown() )
|
||||||
++gGameState;
|
++gGameState;
|
||||||
|
|
Loading…
Reference in a new issue