mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-20 12:46:07 +08:00
[saco] Implement/match CGame::IsKeyPressed(...)
This commit is contained in:
@ -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.
|
||||
|
@ -37,6 +37,7 @@ private:
|
||||
public:
|
||||
|
||||
int GetWeaponModelIDFromWeapon(int iWeaponID);
|
||||
BOOL IsKeyPressed(int iKeyIdentifier);
|
||||
void StartGame();
|
||||
void InitGame();
|
||||
BOOL IsGameLoaded();
|
||||
|
Reference in New Issue
Block a user