I need to know the state of keys (pressed, realeased), i saw the example in the new OpenGL Toolkit FAQ and there is an half-answer for this, becouse in my glut.h (version 3) file, i didn’t find any function where i can register a:
keyboardfunc( int key, int state )
callback function
So how do i register this callback, or how do i call this function?
I need to know the state of keys (pressed, realeased), i saw the example in the new OpenGL Toolkit FAQ and there is an half-answer for this, becouse in my glut.h (version 3) file, i didn’t find any function where i can register a:
keyboardfunc( int key, int state )
callback function
So how do i register this callback, or how do i call this function?
Thanks.[/b]
I’ll update the faq with this example code -
hope this helps.
Regards,
Jim
// gluttest.cpp : Defines the entry point for the console application.
//