Original Post
I am trying to create something so when the key Number Pad 9 is hit red light will be added to the player models.
if(GetAsyncKeyState(0x69)){
f_pDirect3DDevice->SetLight( 0, &Light );
f_pDirect3DDevice->LightEnable( 0, true );
}
The light shows fine on the player as long as I hold down the key. How would I make it so that I would not have to hold down the key to get the right light to stay on?