how to take the keyboard input of arrow keys using glut library
Try using glutSpecialFunc( ). It works in the same way as the other glut callback functions.
Forum Rules