how to disable typematic key (multiple keyPress/keyRelease) in OpenGL/X ?

Hello,
This might be somewhat off-topic, but perhaps some of you have had the same problem and found the solution for it. I’m using OpenGL (nvidia drivers) on Linux/X windows (XFree). When I’m holding any key down for a long time the auto-type kicks in and it starts to produce multiple keyPress/keyRelease events. I’d like to disable it somehow, so I could get only one keyPress and one keyRelease.
Thank you for your help,

Martin

unless you are using GLUT, this is really an OS dependent issue. most systems offer some way of disabling auto key repeat. i use windows, so i catch every keydown/keyup message and turn on/off a bool (i have an array of booleans representing the keyboard keys) if you are doing any sort of time-based input, this is the way to go.

jebus

[This message has been edited by jebus (edited 03-03-2003).]