Archived

This topic is now archived and is closed to further replies.

johannal

Arrow keys on laptop

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites