View Full Version : GLUT & Input

09-06-2001, 10:10 PM

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.

09-07-2001, 06:55 AM
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.

09-13-2001, 01:07 PM
does anyone know of something similar to GetAsynchKeyState() that is available in linux??