March 21, 2009 at 6:33 pm
#3358
JonathaThurston
Participant
You need to first get the ASCII values for the keys I recomend that you code a simple loop that ask you to enter a key and you print the ASCII value out.
Then use #define to set the values to keys. ie #define ESC 27 and getch() to check whether a key was pressed.