View Full Version : How do you know when a key is released?

03-19-2005, 08:42 PM
All the tutorials I read show how to detect if a key is pressed. What about when it is released. How may I detect this?

Thanks in advance!

03-20-2005, 01:02 AM
In what API? If you mean Win32 I think there's a WM_KEYUP event or something. For glut I'm not sure there's a key up.

03-20-2005, 02:09 AM
With glut :
glutKeyboardUpFunc( keyboardUp );


03-20-2005, 09:03 AM
Thank you!