On Wed, 24 Nov 2004, Hans-Christoph Steiner wrote:
I am working with the core keyboard objects and I noticed that when the key auto-repeats, these objects ([key], [keyup], and [keyname]), send a stream of alternating 0's and 1's. I think that the correct way to do auto-repeat would just be to send out 1's for each repeat event, rather than alternating 0's and 1's. The current condition makes it very hard to use the keys in their held state.
I would like to file a bug report, but I am wondering if there is any reason to keep the current behavior. Attached is a patch that illustrates my point.
AFAIK, the X11 specification does it like that; at the very least, all versions of XFree86 of the last 7 years (or so) do it like that, as well as SUN's Slowlaris/Dope'n'win. I've never seen the explanation.
_____________________________________________________________________ Mathieu Bouchard -=- Montréal QC Canada -=- http://artengine.ca/matju