PDA

View Full Version : Detect modifier key(s) without polling



Granium
02-02-2006, 10:18 AM
Is it possible to detect with OpenGL/GLUT if a modifier key (Alt/Shift/Ctrl) is pressed/released?

After searching for an hour or two I got quite annoyed of not finding a way to detect if a modifier key is pressed/released. I'm aware of "int glutGetModifiers(void);" which can not be used as a callback as far as I know. The only option left is polling which is not what I was looking for.

dorbie
02-02-2006, 12:37 PM
This is not an OpenGL question.