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?
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?
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;
}
}