Arrow keys on laptop
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.
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 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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement