PDA

View Full Version : GL Keyboard Constants



03-03-2001, 06:03 PM
I'm looking for a listing of all the openGL keyboard constants. I know the GLUT_KEY_F1 and such, there sitting right in the glut.h file I have, but i've not found anything like GLUT_KEY_Q.

Anyone got a link to a list of these constants?

rts
03-03-2001, 10:49 PM
You don't need things like GLUT_KEY_Q:




static void KeyboardCallback(unsigned char key, int x, int y)
{
switch(key)
{
case 'q':
case 'Q':
/* Do something */
break;
}
}