switch(_getch()) { case 75: bLeft = true; //left break; case 77: bRight = true; //right break; case 72: bRotCounterClock = true; //up break; case 80: bRotClock = true; //down break; }
As you can see, for the arrow keycodes i have 75 for left, 77 for right, 72 for up and 80 for down.
Is this what you are looking for?