> how can I get autorepeat in ggi ?
Usually you will get the autorepeat the underlying target does.
> e.g. holding down a key should retrigger it repeatedly.
This only works for inputs that support it by itself. Most targets do,
actually. You are listening/Polling for KeyRepeat events ?
For thsoe that don't, you can keep an array of held-down keys and simulate
the repeats when the polls time out or enough time has passed since last
press/simulated repeat event.
Note, that for some inputs like the stdin one there is no way to simulate
keyrepeat other than what the OS does, because all we get is ASCII-Values
sent down the char device. Even the key-releases are faked, because the
info just isn't there.
CU, ANdy
--
= Andreas Beck | Email : <[EMAIL PROTECTED]> =