I understand how to check for a Key press, but how would I check for two Key presses?
if (KEY_1 && KEY_2)
do something
TIA
char *key = GetKeyState();
//Catch a+s keys
if(key[KEY_a] && key[KEY_s])
{
//Action for a+s
}
//Catch a+d keys
if(key[KEY_a] && key[KEY_d])
{
//Action for a+d
}
Users browsing this forum: No registered users and 1 guest