[saco] Implement/match CGame::IsKeyPressed(...)

This commit is contained in:
RD42 2024-07-28 22:54:55 +08:00
parent 558f64d84d
commit d92256c9ac
2 changed files with 12 additions and 0 deletions

View File

@ -117,6 +117,17 @@ int CGame::GetWeaponModelIDFromWeapon(int iWeaponID)
//-----------------------------------------------------------
BOOL CGame::IsKeyPressed(int iKeyIdentifier)
{
GTA_CONTROLSET * pControlSet = GameGetInternalKeys();
if(pControlSet->wKeys1[iKeyIdentifier]) return TRUE;
return FALSE;
}
//-----------------------------------------------------------
void CGame::InitGame()
{
// Create a buffer for game text.

View File

@ -37,6 +37,7 @@ private:
public:
int GetWeaponModelIDFromWeapon(int iWeaponID);
BOOL IsKeyPressed(int iKeyIdentifier);
void StartGame();
void InitGame();
BOOL IsGameLoaded();