Depending on what you want to do you can either, replace the system and make it backwards, ie. put whatever is in the keydown into the draw, and make the keydown do the opposite, or you can put the code into the draw script. If, the key not pressed is a constant,then you could also just make a keyup and create actor. I would suggest draw actor.
Actor->DrawActor->ScriptEditor
- Code: Select all
char* key = GetKeyState(); // sets the state of keys
if(key[KEY_t]==0) // if t key is not pressed
{
//your code goes here
}