is there a way to query the key state using glut?
there are 2 functions for setting a handler for keyboard events
/glutKeyboardFunc and glutKeyboardUpFunc). so as long as the window has the focus, for every keydown event i get a key up event. but if the window loses the focus (e.g. on my system if i simply move the mouse cursor out of the window) i do not get a key up event if there has been a previously key down event.
edit: and i guess the same happens to mouse events
should i use sdl instead?