Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11events.c @ 12:34d956b20f75
Fix key repeat detection on newer X servers
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Sun, 29 Apr 2001 22:59:47 +0000 |
parents | 5574376c451d |
children | c3e9d4a623c1 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11events.c Sat Apr 28 18:57:18 2001 +0000 +++ b/src/video/x11/SDL_x11events.c Sun Apr 29 22:59:47 2001 +0000 @@ -73,7 +73,7 @@ XPeekEvent(display, &peekevent); if ( (peekevent.type == KeyPress) && (peekevent.xkey.keycode == event->xkey.keycode) && - (peekevent.xkey.time == event->xkey.time) ) { + ((peekevent.xkey.time-event->xkey.time) < 2) ) { repeated = 1; XNextEvent(display, &peekevent); }