# HG changeset patch
# User Sam Lantinga <slouken@libsdl.org>
# Date 1142214092 0
# Node ID 1ff64ad478b23393babd3ba06cf8b447cb55ee5b
# Parent  dc057a602e98e99ec93c69178d32a2e96094e2b1
Fixed bug #112
Added SDL_GetKeyRepeat()

diff -r dc057a602e98 -r 1ff64ad478b2 WhatsNew
--- a/WhatsNew	Mon Mar 13 01:40:49 2006 +0000
+++ b/WhatsNew	Mon Mar 13 01:41:32 2006 +0000
@@ -3,6 +3,10 @@
 
 Version 1.0:
 
+1.2.10:
+	Added SDL_GetKeyRepeat()
+	Added SDL_config.h, with defaults for various build environments.
+
 1.2.7:
 	Added CPU feature detection functions to SDL_cpuinfo.h:
 		SDL_HasRDTSC(), SDL_HasMMX(), SDL_Has3DNow(), SDL_HasSSE(),
diff -r dc057a602e98 -r 1ff64ad478b2 include/SDL_keyboard.h
--- a/include/SDL_keyboard.h	Mon Mar 13 01:40:49 2006 +0000
+++ b/include/SDL_keyboard.h	Mon Mar 13 01:41:32 2006 +0000
@@ -84,6 +84,7 @@
  * If 'delay' is set to 0, keyboard repeat is disabled.
  */
 extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval);
+extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval);
 
 /*
  * Get a snapshot of the current state of the keyboard.
diff -r dc057a602e98 -r 1ff64ad478b2 src/events/SDL_keyboard.c
--- a/src/events/SDL_keyboard.c	Mon Mar 13 01:40:49 2006 +0000
+++ b/src/events/SDL_keyboard.c	Mon Mar 13 01:41:32 2006 +0000
@@ -569,3 +569,9 @@
 	return(0);
 }
 
+void SDL_GetKeyRepeat(int *delay, int *interval)
+{
+	*delay = SDL_KeyRepeat.delay;
+	*interval = SDL_KeyRepeat.interval;
+}
+