Arrow keys on laptop

Started by
1 comment, last by johannal 20 years, 5 months ago
Hi. I am trying to detect if the user hits the arrow keys on a laptop. So far I havent gotten the keyboard func to grap those events. I even tried using GLUT_KEY_LEFT etc. but they do not seem to work either.
Advertisement
Can you catch other keys? If not, I guess there is something wrong with your message handler.

If the problem is only in the arrow keys, make a simple test app that catches all keypresses, and prints out the keycode. You can then compare the value to some keycode charts to find out which keys the arrows consider themselves.
If my memory serves, most (all?) GLUT_KEY_... defines aren''t sent to the glutKeyboardFunc() but instead to the glutSpecialFunc() callback
I may be getting older, but I refuse to grow up

This topic is closed to new replies.

Advertisement