getkey: properly specify -1 as blocking repeats, not 0

This commit is contained in:
Lephe 2021-06-08 15:25:36 +02:00
parent 57531e63bf
commit 086ad19d13
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 3 additions and 3 deletions

View File

@ -281,9 +281,9 @@ getkey_profile_t getkey_repeat_profile(void);
@count Number of previous repeats (0 on the first call)
The profile function must either return a positive number of microseconds to
wait until the next repeat, or 0 to block the repeat indefinitely. Note that
the keyboard device typically updates every 7-8 ms, timings are tracked in
microseconds only to limit deviations.
wait until the next repeat, or -1 to block the repeat indefinitely. Note
that the keyboard device typically updates every 7-8 ms, timings are tracked
in microseconds only to limit deviations.
Setting a repeat profile overrides GETKEY_REP_ARROWS, GETKEY_REP_ALL, and
the repeat delays. Calling with profile=NULL restores this behavior.