views:

23

answers:

1

I am developing a GLUT program on a mac. Mac's seem to pass modifiers through GLUT in a funny way. Alt and control keys are not captured by glutGetModifiers() instead they're translated into the button int. The command key doesn't seem to be captured by either glutGetModifiers() or the button int. Also, it doesn't show up as a key in my glutKeyboardFunc(...).

Is there any way to capture/detect the command (apple) key in GLUT?

A: 

You might try pulling down FreeGLUT or OpenGLUT and seeing if they handle the keyboard any differently.

genpfault