View Full Version : how to disable typematic key (multiple keyPress/keyRelease) in OpenGL/X ?

03-03-2003, 07:18 AM
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,


03-03-2003, 10:24 AM
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.


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