[quake2] x rendering problem

Tyler Norton tyler.norton at aproductofsociety.org
Wed Apr 3 11:21:56 EST 2002

On Tue, 2002-04-02 at 17:16, Brendan Burns wrote:
> Hey,
> I duplicated this problem, actually it has nothing to do with moving the
> mouse, it has everything to do with the fact that when X repeats keys it
> fires both XKeyPress and XKeyRelease events over and over again like:
> <press and hold q>
> XKeyPress
> XKeyRelease
> XKeyPress
> XKeyRelease
> ..
> XKeyPress
> <let go of q>
> XKeyRelease
> which I think is wicked stupid, but I guess it helps programs that
> aren't smart enough to handle a whole string of XKeyPress events...
> Anyway, the good news is that the nice folks over at SDL figured out
> (well copied actually) some code which figures out if the key is
> repeating, turn-about being fair play, I copied the code from them *I
> love open source* into the rw_x11.c renderer.  This appears to have
> fixed the problem.  Now if you:
> bind q say "foobar"
> if you press and hold 'q', you will only say something once.
> To get this change, update to the latest version in CVS, and let me know
> if it breaks anything!
> --brendan

Nice to know it's fixed, I had a hack in my shell script to fix the
issues, (xset r off) but it was annoying when carrying on a

Ty Norton | tyler.norton at aproductofsociety.org

More information about the quake2 mailing list