mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-11-27 16:30:44 +00:00
[saco] Implement/match CGame::IsKeyPressed(...)
This commit is contained in:
parent
558f64d84d
commit
d92256c9ac
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user