GLUT & Input


is there any way to speed up the input process if you are using the GLUT. The Interrupts are pretty bad and to simulate
a konstant movement without “stop and go”
seems impossible. Can I handle this with the GLUT or is there a need for DirectInput where I have to repgrogramm all my code in
Win32 Style ?!

Thanx a lot.

You mean, to read the keyboard ? Use GetAsyncKeyState, defined in <winuser.h>. It’s very easy to use. There are equivalent functions for handling mice and joysticks. There is nothing more than glutKeyboardFunc (and co) in GLUT.
Hope that helps.

does anyone know of something similar to GetAsynchKeyState() that is available in linux??