ASCII Codes

Could anyone tell me the ASCII code for the arrow keys? Thanks a lot.

If you are using GLUT for keyboard input you have to use glutSpecialFunc to read the arrow keys.

Example of arrow key’s defined for it:
GLUT_KEY_LEFT
GLUT_KEY_RIGHT
GLUT_KEY_UP
GLUT_KEY_DOWN

Originally posted by Mills:
Could anyone tell me the ASCII code for the arrow keys? Thanks a lot.

And you need to use glutSpecialKey function (or was it glutSpecialKeyboard)

Those keys are better treated with their scan codes instead of ASCII code, and thats what the “special” function does.
The same can be said for other function keys.

V-man

Google is your friend.