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

03-19-2005, 07: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, 12: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, 01:09 AM
With glut :
glutKeyboardUpFunc( keyboardUp );


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