mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-20 20:56: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()
|
void CGame::InitGame()
|
||||||
{
|
{
|
||||||
// Create a buffer for game text.
|
// Create a buffer for game text.
|
||||||
|
@ -37,6 +37,7 @@ private:
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
int GetWeaponModelIDFromWeapon(int iWeaponID);
|
int GetWeaponModelIDFromWeapon(int iWeaponID);
|
||||||
|
BOOL IsKeyPressed(int iKeyIdentifier);
|
||||||
void StartGame();
|
void StartGame();
|
||||||
void InitGame();
|
void InitGame();
|
||||||
BOOL IsGameLoaded();
|
BOOL IsGameLoaded();
|
||||||
|
Reference in New Issue
Block a user