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 - [PATCH] SDL_GetKeyRepeat
Summary: [PATCH] SDL_GetKeyRepeat
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: 2.0.0
Hardware: All All
: P2 API change
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-30 02:43 UTC by Sam Lantinga
Modified: 2006-03-14 02:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!