I'm fairly new to GLUT programming, and this is a slight problem I had. GLUT calls my keyboard function when a key is pressed. Here is what it looks like:
Okay, that works as far as I'm concerned. But obviously I need keyboard codes to read keys such as ESC, and ARROWKEYS. Where do I find the codes for these?Code:void keyboard(unsigned char key, int x, int y) { switch (key) { case 'd': // do something here break; default: break; } }