PDA

View Full Version : 2 keys



Silent Set
05-25-2004, 06:49 AM
How do I get 2 pressed keys like [shift]+[up]?

thanks
Silent_Set

brcain
05-25-2004, 08:57 AM
It depends upon what GUI toolkit you are using?

For X Windows / Motif (see keysymdef.h), they are called key masks or modifiers (e.g. Shift<Key>XK_Up, Alt<Key>XK_Up, Ctrl<Key>XK_Up).

For GLUT, look at glutGetModifiers(), GLUT_ACTIVE_SHIFT, glutKeyboardFunc(), GLUT_KEY_UP, etc.

For Win32/MFC a quick Google search should put you on the right track.