Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: 2 keys

  1. #1
    Junior Member Newbie
    Join Date
    May 2004
    Location
    Brasil
    Posts
    6

    2 keys

    How do I get 2 pressed keys like [shift]+[up]?

    thanks
    Silent_Set
    ---
    Silent_set

  2. #2
    Junior Member Regular Contributor
    Join Date
    Apr 2001
    Location
    U.S.
    Posts
    149

    Re: 2 keys

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •