We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 112

Summary: [PATCH] SDL_GetKeyRepeat
Product: SDL Reporter: Sam Lantinga <slouken>
Component: eventsAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: API change    
Priority: P2    
Version: 2.0.0   
Hardware: All   
OS: All   

Description Sam Lantinga 2006-01-30 02:43:20 UTC
Date: Fri, 28 Oct 2005 04:47:13 -0400
From: Donny Viszneki <viszneki@telerama.com>
Subject: [SDL] [PATCH] SDL_GetKeyRepeat

I've found it useful to fetch the key repeat state so that various
libraries for GUI elements can cooperate with the application utilizing
them (that is to say, restore the host application's key repeat state
once GUI elements no longer possess "keyboard focus.") This patch is
based on the source code release of SDL 1.2.8, but I doubt this code
has changed much.

SDL-1.2.8$ diff src/events/SDL_keyboard.c.original
src/events/SDL_keyboard.c
571a572,578
 > void SDL_GetKeyRepeat(int *delay, int *interval)
 > {
 >     *delay = SDL_KeyRepeat.delay;
 >     *interval = SDL_KeyRepeat.interval;
 >     return;
 > }
 >

SDL-1.2.8$ diff include/SDL_keyboard.h include/SDL_keyboard.h.original
91d90
< extern DECLSPEC void SDL_CALL SDL_GetKeyRepeat(int *delay, int
*interval);
Comment 1 Sam Lantinga 2006-03-14 02:06:49 UTC
This is in CVS, thanks!