Originally posted by GrNxxDaY
none of thta makes much sense to me.
how can i find out if the user pressed the UP arrow key if it has the same ASCII value as one of the letters?
the reason it has the same value is because when you do getch(); you have to do it twice, here is the code is used back when I was developing in Dos consoles:
Code:
int a=getch();
cout << a << endl;
if(a==224) //224 means the arrow keys and some other stuff
{
int b=getch();
cout << b << endl;
}
and you can see which key the user pressed that way....k? I didn't do any testing for the keys, because I forgot which key was which, hehe
hope that helps
-EDIT-
lmao, the rest of you guys really know how to confuse a noob, lol