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: keyboard modifiers during motion callback.

  1. #1
    Intern Newbie
    Join Date
    May 2001
    Location
    USA
    Posts
    36

    keyboard modifiers during motion callback.

    One of the more annoying features of GLUT is that you can't call glutGetModifiers during the motion callback. Actually GLUT seems to lose ALL keyboard events during a mouse button drag. Is this handled better by the other windowing toolkits out there?

  2. #2
    Advanced Member Frequent Contributor marcus256's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    764

    Re: keyboard modifiers during motion callback.

    I'm not sure what you want from the toolkit, but GLFW should be able to do that:

    Code :
    void MousePosFun( int x, int y )
    {
        if( glfwGetKey( GLFW_KEY_LSHIFT ) )
        {
            // left shift pressed
        }
        // ...
    }
    You may also want to have a look at Cpw, which is more GLUT-like than GLFW.

    /Marcus


    [This message has been edited by marcus256 (edited 08-02-2002).]

Posting Permissions

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