Пример #1
0
// Gets keyboard repeat rate.
func GetKeyRepeat() (int, int) {

	var delay int
	var interval int

	C.SDL_GetKeyRepeat((*C.int)(cast(&delay)), (*C.int)(cast(&interval)))

	return delay, interval
}
Пример #2
0
// Gets keyboard repeat rate.
func GetKeyRepeat() (int, int) {
	var delay int
	var interval int

	GlobalMutex.Lock()
	C.SDL_GetKeyRepeat((*C.int)(cast(&delay)), (*C.int)(cast(&interval)))
	GlobalMutex.Unlock()

	return delay, interval
}