forked from Lephenixnoir/gint
27 lines
523 B
C
27 lines
523 B
C
|
#include <keyboard.h>
|
||
|
#include <keyboard_internals.h>
|
||
|
|
||
|
/*
|
||
|
keyboard_setFrequency()
|
||
|
Sets the keyboard frequency (in Hz).
|
||
|
*/
|
||
|
void keyboard_setFrequency(int frequency)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
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;
|
||
|
}
|