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
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

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