GetAsyncKeyState how to properly use it?
I am working on sprites atm but i cant make them be there without me always holding down the Insert key..
My code:
If you can help i will be greatly thanksfull and +rep you
My code:
Code:
if(Sprite==true)
{
pSprite->Begin(D3DXSPRITE_ALPHABLEND);
pSprite->Draw(pTexture, NULL, NULL, &Position, 0xFFFFFFFF);
pSprite->End();
}
if (GetAsyncKeyState(VK_INSERT)<0){
Sprite=true;
}else{
Sprite=false;
}

might not work, it depends where bool is at.

