diff src/events/SDL_keyboard.c @ 1507:1ff64ad478b2

Fixed bug #112 Added SDL_GetKeyRepeat()
author Sam Lantinga <slouken@libsdl.org>
date Mon, 13 Mar 2006 01:41:32 +0000
parents d910939febfa
children 97d0966f4bf7
line wrap: on
line diff
--- 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;
+}
+