PDA

View Full Version : ASCII Codes



04-05-2002, 11:24 AM
Could anyone tell me the ASCII code for the arrow keys? Thanks a lot.

nexusone
04-05-2002, 11:54 AM
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.

V-man
04-05-2002, 12:21 PM
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

harsman
04-07-2002, 07:25 AM
Google (http://www.google.com/search?hl=en&q=ascii+code+arrow+key) is your friend.