OpenGL Keyboard AND Mouse input?
I'm trying to select multiple units at once, using the Shift key. In my Selection function (used in glutMouseFunc), is there a way to see if the Shift key is being pressed down? Or do you just have to have a boolean that keeps track of it being up or down?
Jeff
If your implementation of GLUT has glutGetModifiers, you can use it.
Otherwise, you're stuck with flags.
I think glutGetModifiers only works when you have a keyboard event already, so you'll probably have to store a flag anyway.
Otherwise, you're stuck with flags.
I think glutGetModifiers only works when you have a keyboard event already, so you'll probably have to store a flag anyway.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement