|
I'm writing a game with OpenGL/GLUT and I've run into a little problem with input. The player is supposed to use left/right to move and Ctrl to jump. I can get arrow key input with glutSpecialFunc and glutSpecialUpFunc, and I've been led to believe that glutGetModifiers can catch the status of the Ctrl key. So far, so good.
Here's the problem: as far as I can tell, Ctrl does not trigger a callback function. I can't call glutGetModifiers except from within a keyboard or mouse callback, and I can't access the callback without hitting some other key besides Ctrl.
So, is there any possible way in GLUT to use the Ctrl key to jump, or will I have to make the transition to SDL a little sooner than expected?
--------------------
|