GLUT keyboard and mouse func separated
I am programming a simple 3D model viewer. It works like a charm as far as 3D goes, but the controls are more than edgy.
To keep it simple, I used the glut keyboard and mouse callbacks to establish a first-person-like camera movement (imagine any FPS while underwater, you'll get the idea). They both work the way I intended separately, but I have two problems.
1. The callbacks are mutually exclusive. I have to "turn" (mouse) or "walk" (keyboard). Is there any way to have them work at the same time ? Or at least in fast alternance, so that both are usable.
2. Is there any way to accelerate the "callback rate", i.e. the time between two calls to the keyboard and mouse functions ?
Keep in mind that this is a very simple program ; I have neither time nor reason to use an input lib like DirectInput or SDL. However, since this viewer is not for me, I hope to deliver a smoother user experience.