SDK version 2.1.1
Key repeat timers
playdate.timer.keyRepeatTimer(callback, ...)
keyRepeatTimer()
returns a timer that fires at key-repeat intervals. The function callback will be called immediately, then again after 300 milliseconds, then repeatedly at 100 millisecond intervals. If you wish to customize these millisecond intervals, usekeyRepeatTimerWithDelay()
.playdate.timer.keyRepeatTimerWithDelay(delayAfterInitialFiring, delayAfterSecondFiring, callback, ...)
keyRepeatTimer()
returns a timer that fires at key-repeat intervals. The function callback will be called immediately, then again after 300 milliseconds, then repeatedly at 100 millisecond intervals. If you wish to customize these millisecond intervals, usekeyRepeatTimerWithDelay()
.