Key repeat is handled by the OS, since text input is now decoupled from physical key events.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402368
This commit is contained in:
parent
278c83218c
commit
80dcd123dc
7 changed files with 38 additions and 158 deletions
|
@ -240,6 +240,12 @@ SDL_CompatEventFilter(void *userdata, SDL_Event * event)
|
|||
}
|
||||
break;
|
||||
}
|
||||
case SDL_TEXTINPUT:
|
||||
{
|
||||
/* FIXME: Generate an old style key repeat event if needed */
|
||||
printf("TEXTINPUT: '%s'\n", event->text.text);
|
||||
break;
|
||||
}
|
||||
case SDL_MOUSEWHEEL:
|
||||
{
|
||||
Uint8 button;
|
||||
|
@ -1447,4 +1453,22 @@ SDL_GL_SwapBuffers(void)
|
|||
SDL_GL_SwapWindow(SDL_VideoWindow);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
SDL_EnableKeyRepeat(int delay, int interval)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
SDL_GetKeyRepeat(int *delay, int *interval)
|
||||
{
|
||||
if (delay) {
|
||||
*delay = SDL_DEFAULT_REPEAT_DELAY;
|
||||
}
|
||||
if (interval) {
|
||||
*interval = SDL_DEFAULT_REPEAT_INTERVAL;
|
||||
}
|
||||
}
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue