#include <revolution/kbd.h>
KBDEc KBDSetRepeat(KBDChannel ch, u16 delay, u16 interval);
ch |
Keyboard channel to set. |
delay |
Number of milliseconds to use as the repeat delay value. |
interval |
Number of milliseconds to use as the repeat rate interval value. |
KBDEc |
Keyboard error code.KBD_SUCCESS if the call was successful.KBD_ERR_NOT_INITIALIZED if the library was not initialized.KBD_ERR_BAD_VALUE if ch is out of range. |
Set the current repeat rate values of the USB keyboard on channel ch. If delay is 0, keyboard repeat is disabled. Otherwise, delay is the value in milliseconds before repeating a key press. interval is the time in milliseconds between repeated key actions. Suggested values are delay=500 and interval=33. By default, keyboard repeat is enabled and the suggested values are used.
2007/03/27 Initial version.