This will probably sound incredibly ignorant to most of you, but I can't seem to find the values of different keys on the keyboard. As an example, I've included the following:
...
if(kbhit())
{
key = getch();
}
if(key == 27)
{
gamestat = GAMEQUIT;
}
...
and so on. This snippet is part of a DOS console game I wrote quite awhile ago. I know that 27 is the value of the "Esc" key, and this segment tells the program to quit. But I don't know the values of others keys like the arrows. If you know anything that I don't, please reply to my post.
Thanks Everyone!!!