i am making a game and i would appreciate it if anyone could tell me how to detect two keys being pressed at once impleminting the following code:
int Choice;
do
{
Choice=getch()
switch(Choice)
{
case 72: //up
Y--; //coords move up
}
putpixel(X,Y);
}while(Choice!=27); //27 is ascii for <Esc>
so how would i detect if the user inputs up and left at the same time, so that i could move the pixel up and left?
thanks for any help