void bx_set_autorepeat ( int  activate  ) 

Set the autorepeat mode of the keyboard on or off. When on, if a key is kept physically pressed after a certain amount of time, the system cyclically reports "fake" couples of release/press states. In bx-lib, autorepeat is off by default, thaty is, bx-lib ignores the "fake" states reported by X11.

Parameters:
activate sets autorepeat mode on (non zero) or off (zero).
Returns:
nothing
Remarks:
  • bx-lib never asks X11 to stop to emit "fake" reports. It only ignores them when it wants to. If bx-lib did such a thing, it would only be possible at a global level, that is, other X11 applications would also be deprived of the "fake" reports", a thing we certainly do not want (pressing continously the space-bar in a text editor unrelated to the program would be without the desired effect for example).
  • Conversely, bx-lib never force X11 to emit "fake" reports, it just does not ignore them when it wants to. So, if another application asks X11 to stop to emit "fake" reports, or if the user does the same with the unix command "xset r off", a call to bx_set_autorepeat (1) has no visible effect because we bx-lib just stops to ignore "fake" reports that never happen.


Generated on Fri Oct 10 00:01:00 2008 for bx-lib : the Basic X11 Library tuned for C beginners by  doxygen 1.5.6