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?

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

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).]