OSInitKeyInitDelay Function (ROM Call 0x248)

kbd.h

short OSInitKeyInitDelay (short delay);

Sets the initial autorepeat key delay.

OSInitKeyInitDelay sets the time that a key has to be held down before it starts to repeat to delay (note that only few keys have autorepeat feature, like arrow keys and backspace). Measuring unit for this function is 1/395 s (because Auto-Int 1 is triggered 395 times per second), and the default value for delay is 336 (slightly shorter than 1 second). OSInitKeyInitDelay returns previous autorepeat key delay.