I got a switch loop and in this switch loop I got few conditions like if user presses 's' or 'a' then do something. This switch loop is in the while loop and while loop will stop executing until the user presses the ESC key. The problem is that sometimes I have to press 2 times the ESC key if I want to exit the applicaion and I have the same problem with the keys 'a' and 's'.
I'm using the getch() function for checking what key was pressed. What am I missing here?
I don't know the ASCII values for arrows (left, right, up, down). Anybody knows ?
I'm working on a console win32 application in VC++ 6.0 on Win98.