PDA

View Full Version : GLUT Keyboard Issues


DJBlufire
2003.05.14, 04:17 AM
I was playing around with the input functionality of GLUT and noticed some glaring errors. What the header file called the up, left, down, and right arrow keys really mapped to stuff like d, e, f, and g. Not only that, but the arrow keys don't map to ANYTHING in the keyboard function... meaning it apparently isn't possible to recieve input from the arrows.

Then again I could be doing something horribly wrong. Any thoughts?

OneSadCookie
2003.05.14, 04:27 AM
You don't get special keys in your glutKeyboardFunc. They come in through the glutSpecialFunc.

DJBlufire
2003.05.14, 04:33 AM
Does the glutSpecialFunc only cover the keys that glutKeyboardFunc doesn't, or does it cover all of them?

OneSadCookie
2003.05.14, 05:01 AM
Only the ones that glutKeyboardFunc doesn't. Only the ones that have symbolic constants defined for them (like GLUT_KEY_RIGHT).