At 5:00 PM +0200 06/7/00, McKee, Kevin L. wrote:
>Does anyone have a quick trick to slow down the repeating action when a
>repeating button is pressed. Currently when I press the repeating button it
>either jumps by twos or threes.
Repeating buttons normally delay for you. It looks like the repeat
interval is 1/2 a second until it starts repeating, then about 10 times per
second (every 9 ticks) after that. ...that does seem sort of fast!
It's easy to slow it down. There's a value in the ctlRepeat event
(ctlRepeat.time) that controls when the next repeat event will be set. So
if you want to change the repeat interval to two times a second, just add
41 to the value stored there. (So it goes from an interval of 9 ticks to
one of 50 ticks.)
Of course, you should probably make these values dependent on the ticks per
second result, just for correctness.
--Bob
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/