gint_strcat/src/keyboard/keyboard_config.c

21 lines
443 B
C

#include <internals/keyboard.h>
#include <keyboard.h>
#include <clock.h>
#include <rtc.h>
/*
keyboard_setRepeatRate()
Sets the default repeat rate for key events. The unit for the argument
is the keyboard period.
For example at 32 Hz, values of (20, 4) will imitate the system
default.
*/
void keyboard_setRepeatRate(int first, int next)
{
if(first < 0) first = 0;
if(next < 0) next = 0;
repeat_first = first;
repeat_next = next;
}