I am working on a game using OpenGL and I noticed that I have to register a
glutMouseFunc(void (*func)(int button, int state, int x, int y))
to detect mouse presses and releases, but I have to register a
glutKeyboardFunc(void (*func)(unsigned char button, int x, int y))
and a
glutKeyboardUpFunc(void (*func)(unsigned char button, int x, int y))
(both of which I pipe to the function
handleKey(char state unsigned char button, int x, int y)
function anyway)
to do the same thing for key presses. Why doesn't glutKeyboardFunc just pass the state like glutMouseFunc does?