diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-04-09 20:40:46 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-04-09 20:40:46 +0200 |
commit | a5239b554fa13aaf0ffa5ee850402f71cd680d29 (patch) | |
tree | 47ac7800bd86e5674fee2b6fc3a797647570e6cb /src/core/Pad.h | |
parent | Merge pull request #393 from Sergeanur/txdimg (diff) | |
parent | PS2 Cheats, restored R*names (diff) | |
download | re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.gz re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.bz2 re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.lz re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.xz re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.zst re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.zip |
Diffstat (limited to 'src/core/Pad.h')
-rw-r--r-- | src/core/Pad.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/core/Pad.h b/src/core/Pad.h index ca44a9f7..78bfac1d 100644 --- a/src/core/Pad.h +++ b/src/core/Pad.h @@ -136,6 +136,10 @@ enum class CPad { public: + enum + { + HORNHISTORY_SIZE = 5, + }; CControllerState NewState; CControllerState OldState; CControllerState PCTempKeyState; @@ -146,11 +150,11 @@ public: int16 Mode; int16 ShakeDur; uint8 ShakeFreq; - bool bHornHistory[5]; + bool bHornHistory[HORNHISTORY_SIZE]; uint8 iCurrHornHistory; uint8 DisablePlayerControls; int8 bApplyBrakes; - char _unk[12]; //int32 unk[3]; + char CheatString[12]; char _pad0[3]; int32 LastTimeTouched; int32 AverageWeapon; @@ -161,6 +165,7 @@ public: static bool &bDisplayNoControllerMessage; static bool &bObsoleteControllerMessage; + static bool bOldDisplayNoControllerMessage; static bool &m_bMapPadOneToPadTwo; static CKeyboardState &OldKeyState; @@ -172,8 +177,9 @@ public: static CMouseControllerState &PCTempMouseControllerState; - - +#ifdef GTA_PS2_STUFF + static void Initialise(void); +#endif void Clear(bool bResetPlayerControls); void ClearMouseHistory(); void UpdateMouse(); @@ -181,6 +187,9 @@ public: void StartShake(int16 nDur, uint8 nFreq); void StartShake_Distance(int16 nDur, uint8 nFreq, float fX, float fY, float fz); void StartShake_Train(float fX, float fY); +#ifdef GTA_PS2_STUFF + void AddToCheatString(char c); +#endif void AddToPCCheatString(char c); static void UpdatePads(void); |