View Full Version : keyboard modifiers during motion callback.
07-24-2002, 12:58 PM
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?
08-02-2002, 11:42 AM
I'm not sure what you want from the toolkit, but GLFW (http://hem.passagen.se/opengl/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.
[This message has been edited by marcus256 (edited 08-02-2002).]
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.