autorepeat problem

Daniel Stone daniel at fooishbar.org
Fri Nov 9 11:40:03 PST 2007


On Fri, Nov 09, 2007 at 08:02:19PM +0000, Simon Bachmann wrote:
> I know this has been discussed over and over on this list and other 
> places, but I could not find a comprehensive answer to my questions 
> anywhere.
> Premise: I don't know much about how X works, actually I'd say nothing 
> at all...
> I'm writing a little game (in Tcl/Tk) and the multiple release/press 
> events generated by the autorepeat functionality cause some problems, 
> since I need only the "true" keypresses/releases (the physical ones). 

Hi,
You can use XkbSetDetectableAutoRepeat for this.  This changes
autorepeat to press->press->press->press->release, not
press->release->press->release.

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20071109/4952123f/attachment.pgp>


More information about the xorg mailing list