Auto repeat for left and right keys
commit2fded736fa883c9958a8cb15d364a2422e37d2b8
authorjflyper <shinoda@jaist.ac.jp>
Mon, 14 Nov 2016 16:23:16 +0000 (15 01:23 +0900)
committerjflyper <shinoda@jaist.ac.jp>
Mon, 14 Nov 2016 16:23:16 +0000 (15 01:23 +0900)
tree19c2f5ee681835f7f6c8ddff8f02a75060107112
parent071b14f9c5cb3b2d1989fc590cf6a0ee1f7c6f47
Auto repeat for left and right keys

Key repeat effect is implemented in two phases.
First phldase is to decrease rcDelayMs reciprocal to hold time.
When rcDelayMs reached a certain limit (scheduling interval),
repeat rate will not raise anymore, so we call key handler
multiple times (repeatCount).

XXX Caveat: Most constants are adjusted pragmatically.
XXX Rewrite this someday, so it uses actual hold time instead of
holdCount, which depends on the scheduling interval.
src/main/cms/cms.c