PDA

View Full Version : GLUT - Shift key?



stratos
03-13-2002, 11:04 PM
Hi,
Is there any way of getting if the Shift key (e.g. Shift + Up) is pressed via GLUT (on SGI)?
If not is there an easy way to modify GLUT's source code to make it do so ?
Thanks in advance,
Stratos

McLee
03-14-2002, 12:25 AM
you can use glutGetModifiers ( void ); to get the modifier key state when callbacks were generated (keyboard, mouse)

the return values are:
GLUT_ACTIVE_SHIFT
GLUT_ACTIVE_CTRL
GLUT_ACTIVE_ALT

this is take from the GLUT documentation